Rendering arbitrary-scale emojis using the Slug algorithm

Crisp emojis at any size? Open‑source crowd roars, skeptics side‑eye

TLDR: Slug’s now public-domain and already powering HarfBuzz’s GPU path, promising razor‑sharp emojis and text at any size. Devs are split between wild hype for crisp, scalable emoji and worries about patents, complexity, and whether this sidelines older methods and stretches HarfBuzz beyond its original role.

The internet just got a surprise plot twist: Eric Lengyel released his patented Slug text-rendering method to the public domain, and developers are losing it. Within days, an open-source version landed in HarfBuzz GPU, and now a new post teases the holy grail: perfectly sharp emojis at any size, even in 3D. Translation for non-nerds: bigger, cleaner, non-fuzzy emojis anywhere you want them. Cue the cheering — and the chaos.

The hype squad is all in: “goodbye blurry edges,” “hello billboard-sized 😂,” and “make my VR text legible, please.” Fans hail Lengyel as a legend for waiving the patent, and praise Behdad Esfahbod for wiring it into HarfBuzz so fast. But the comment wars came hot: old-school devs defend the current trick (SDF, a distance-based hack to keep text sharp) and insist it’s “good enough.” Others clutch pearls over patent vibes (“public domain today, what about tomorrow?”) and worry that a GPU-only approach leaves low-power devices behind. Then there’s drama about HarfBuzz’s mission creep — “it was for laying out letters, now it’s painting them too?!”

Memes flew: Times New Roman rendered on a skyscraper, emoji “boss fights,” and “Slug vs SDF” wrestling posters. The vibe: game-changing tech meets classic internet skepticism — and the emoji are watching.

Key Points

  • Eric Lengyel released the Slug algorithm into the public domain, waiving exclusive patent rights.
  • An open-source Slug implementation was added to the HarfBuzz repository as HarfBuzz GPU by Behdad Esfahbod.
  • The post contrasts bitmap and SDF-based text rendering with Slug’s fragment-shader coverage approach.
  • Slug preprocesses glyph curves on the CPU and computes per-pixel coverage on the GPU, enabling precise scaling and 3D transforms.
  • Example code shows how to use HarfBuzz GPU APIs to encode glyph outlines, upload data to a texture buffer, and render each glyph as a quad.

Hottest takes

“SDF is dead; long live Slug. I want billboard-sized 😂” — vectorViking
“Cool tech, but patents give me hives—what’s the catch?” — fossPossum
“Stop bolting a rocket to HarfBuzz; keep it lean” — kernDaddy
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.