# Slug text rendering algorithm

24 Hacker News commenters recommended Slug text rendering algorithm and 1 criticized it, November 2025 to November 2026. It was recommended in 6 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** 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.

## Why people recommend it

- Free, open-source, public domain release (6 comments): "Actually novel implementation is protected, paid the author's bills, and was dedicated to the public domain recently" ([source](https://news.ycombinator.com/item?id=49247323)) "I have had my eye on Slug for a while and wished it was open-source." ([source](https://news.ycombinator.com/item?id=47424505)) "Awesome algorithm and thank you for donating it to open source!" ([source](https://news.ycombinator.com/item?id=47420095))
- Renders vector shapes from Bézier curves (4 comments): "there's really no excuse not to render glyphs directly from the Bézier curves with analytic anti-aliasing" ([source](https://news.ycombinator.com/item?id=47420189)) "Slug was designed to render text and vector graphics inside a 3D scene" ([source](https://news.ycombinator.com/item?id=47435157)) "Slug is suitable for generic vector graphics" ([source](https://news.ycombinator.com/item?id=47423573))
- No numerical precision issues (2 comments): "The algorithm eliminates all numerical precision issues -- provably -- making it the most robust of all time." ([source](https://news.ycombinator.com/item?id=47435117)) "Slug does not have numerical precision issues." ([source](https://news.ycombinator.com/item?id=47426952))

## Alternatives hackers recommend

- [Pretext](https://hackerapproved.com/p/pretext.md): 17 recommend
- [HarfBuzz](https://hackerapproved.com/p/harfbuzz.md): 8 recommend
- [FreeType](https://hackerapproved.com/p/freetype.md): 5 recommend

## Cite as

Hacker Approved, "Slug text rendering algorithm", https://hackerapproved.com/p/slug-text-rendering-algorithm/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
