
Slug Font Rendering
Reference HLSL shaders for the Slug algorithm, which renders vector fonts entirely on the GPU by encoding glyphs as quadratic Bézier curves and computing coverage per-fragment. No texture atlases, scales infinitely, works with TrueType and OpenType. You get the core fragment shader logic for winding number calculation, a band optimization to reduce per-pixel curve iteration, and helpers for Bézier and line segment evaluation. This is a reference implementation from the original paper, so you'll need to wire up your own CPU-side glyph preprocessing and buffer management. MIT licensed, patent is public domain. Good fit if you're building a rendering engine or want high-quality text without atlas hassles.
- skills.sh installs
- 1.2K
- GitHub stars
- 61
- last updated
- Jul 14, 2026
Install
$ npx -y skills add aradotso/trending-skills --skill slug-font-rendering --agent claude-codeInstalls into .claude/skills of the current project.
Files
Slug Font Rendering Algorithm
Skill by ara.so — Daily 2026 Skills collection.
Slug is a reference implementation of the Slug font rendering algorithm — a GPU-accelerated technique for rendering vector fonts and glyphs at arbitrary scales with high quality anti-aliasing. It works by encoding glyph outlines as lists of quadratic Bézier curves and line segments, then resolving coverage directly in fragment shaders without pre-rasterized textures.
Paper: JCGT 2017 — Slug Algorithm
Blog (updates): A Decade of Slug
License: MIT — Patent dedicated to public domain. Credit required if distributed.
What Slug Does
- Renders TrueType/OpenType glyphs entirely on the GPU
- No texture atlases or pre-rasterization needed
- Scales to any resolution without quality loss
- Anti-aliased coverage computed per-fragment using Bézier math
- Works with any rendering API that supports programmable shaders (D3D11/12, Vulkan, Metal via translation)
Repository Structure
Sponsors
Details
- Repository
- github.com/aradotso/trending-skills
- First seen
- Apr 16, 2026
More from aradotso/trending-skills
All 251- Taiwan Md Knowledge Base1.2K
- Witr Process Inspector1.2K
- Zeroboot Vm Sandbox1.2K
- Code Review Graph1.1K
- Flash Moe Inference1.1K
- Ghostling Libghostty Terminal1.1K
- 724 Office Ai Agent1K
- Claude Peers Mcp1K
- My Brain Is Full Crew1K
- Weixin Agent Sdk1K
- Dingtalk Workspace Cli941
- Polymarket Arbitrage Trading Bot927
- Awesome Phd Cv916
- Web Access Claude Skill916
- Weclaw Wechat Ai Bridge911
- Awesome Free Llm Apis904
- Cc Connect Ai Bridge884
- Filmkit Fujifilm Camera879
- Opencli Rs Web Scraper874
- Vercel Labs Emulate873
- Creationix Rx Data Store862
- Agent Flow Visualization840
- Microsoft Rust Training837
- Tg Ws Proxy Telegram Socks5837