Slug text rendering algorithm
Hacker ApprovedThe most recommended of 4 text rendering libraries
Recommended for crisp GPU text and vector rendering from Bézier curves at large sizes, now public domain. Caveat: looks wrong at long distances and tiny text.
Recommended for crisp GPU text and vector rendering from Bézier curves at large sizes, now public domain. Caveat: looks wrong at long distances and tiny text.
25 people gave an opinion
- recommend it
- 24
- criticize it
- 1
- approval share
- 96%
Recommended in 6 of 13 months
- November 2025: not recommended
- December 2025: not recommended
- January 2026: not recommended
- February 2026: not recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: not recommended
- June 2026: recommended
- July 2026: not recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 24 people recommend itNeeds 10 or more, met.
- 24 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 6 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Free, open-source, public domain release
“Actually novel implementation is protected, paid the author's bills, and was dedicated to the public domain recently”
Comment from 10 Aug 2026 in “Mistral Patent for "Code implemented tool calls"” “I have had my eye on Slug for a while and wished it was open-source.”
Comment from 18 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain” “Awesome algorithm and thank you for donating it to open source!”
Comment from 18 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain” - Comment from 17 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain”
- Comment from 18 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain”
- Comment from 18 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain”
Renders vector shapes from Bézier curves
“there's really no excuse not to render glyphs directly from the Bézier curves with analytic anti-aliasing”
Comment from 18 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain” “Slug was designed to render text and vector graphics inside a 3D scene”
Comment from 19 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain” “Slug is suitable for generic vector graphics”
Comment from 18 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain” - Comment from 11 Apr 2026 in “HarfBuzz Slug Support with WebGL”
No numerical precision issues
“The algorithm eliminates all numerical precision issues -- provably -- making it the most robust of all time.”
Comment from 19 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain” “Slug does not have numerical precision issues.”
Comment from 18 Mar 2026 in “Slug Text Rendering Algorithm Dedicated to Public Domain”
Other text rendering libraries people recommend
The three most recommended other text rendering libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
See all 4 text rendering libraries, rankedWhat people said
26 of the 28 comments that mention it, newest first. Each links to the original comment.
“the best renderer solution at the moment is Slug”
“Slug is a very cool algorithm.”
“It does not look correct at long distances, which is why you shouldn't use it for outlines, drop shadows”
“which is great on really high resolution displays and large sizes”
“But slug wins in perspective in my eyes.”
“couldn't publish it as FOSS because they found a patent covering it”
“Actually novel implementation is protected, paid the author's bills, and was dedicated to the public domain recently”
“Slug preserves the vector shapes.”
“Distance-based anti-aliasing remains an advantage of Slug in my view.”
“Slug was designed to render text and vector graphics inside a 3D scene”
“The algorithm eliminates all numerical precision issues -- provably -- making it the most robust of all time.”
“something far simpler (like slug!) will end up being more efficient simply by avoiding all those shader launches”
“Slug does not have numerical precision issues.”
“I have had my eye on Slug for a while and wished it was open-source.”
“I'm really glad Slug was able to find commercial success for you”
“Slug is suitable for generic vector graphics”
“works surprisingly well though, unless you need tiny text”
“It's an awesome approach to let GPU render fonts.”
“Some of those individual glyphs are composed of over 1000 Bézier curves!”
“The open-source announcement is the real news.”
“Amazing, Thank you Eric!!”
“there's really no excuse not to render glyphs directly from the Bézier curves with analytic anti-aliasing”
“Awesome algorithm and thank you for donating it to open source!”
“It is an excellent, artfully crafted library; really the pinnacle of software engineering in my opinion.”
“What an absolutely incredibly gift to the community!!”
“extremely elegant and very appealing”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.