{"slug": "slug", "name": "Slug", "category": "dev-libs", "category_name": "Libraries and frameworks", "description": "", "recommenders": 3, "commenters": 5, "warners": 0, "score": 3.257, "rising": 0.35, "first": "2026-03-17", "latest": "2026-09-30", "why": "I used Slug at a previous job. It is an excellent, artfully crafted library; really the pinnacle of software engineering in my opinion.", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 3, "neutral": 1, "compare": 1, "warn": 0}, "spark": [0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0], "listed": true, "loved": [], "caveat": "", "short_quote": "I used Slug at a previous job. It is an excellent, artfully crafted library; really the pinnacle of software engineering in my opinion.", "icon": false, "domain": null, "github_repo": "github.com/ericlengyel/slug", "official_url": "https://sluglibrary.com", "pricing": "", "aliases": ["Slug"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 798630897, "item_id": 49914431, "url": "https://news.ycombinator.com/item?id=49914431", "by": "psyclyx", "date": "2026-09-30", "stance": "recommend", "quote": "Slug is a very cool algorithm.", "excerpt": "Slug mentioned! When the Slug patent was released to the public domain, I put together[1] Snail[2], a Slug implementation in Zig. One thing I found was that it was tough to get small text to look good with some fonts. TrueType fonts often have bytecode that tweaks curve points to better fit the pixel grid at a particular size. Part of the pitch for Slug is that it doesn't require per-size glyph prep, so Slug text is ", "context": "", "use_case": "GPU text rendering", "switched_from": "", "story": "SDF vs. MSDF vs. Slug: GPU Text Rendering"}, {"id": 778048864, "item_id": 48628054, "url": "https://news.ycombinator.com/item?id=48628054", "by": "klaussilveira", "date": "2026-06-22", "stance": "recommend", "quote": "Have you considered Slug https://github.com/EricLengyel/Slug ?", "excerpt": "The text really needs some better rendering technique. It is very hard to read. Have you considered Slug https://github.com/EricLengyel/Slug ?", "context": "", "use_case": "text rendering", "switched_from": "", "story": "Show HN: Criterion Closet as a website \u2013 pull any of 1,247 films off the shelf"}, {"id": 758705248, "item_id": 47419078, "url": "https://news.ycombinator.com/item?id=47419078", "by": "astroalex", "date": "2026-03-17", "stance": "recommend", "quote": "I used Slug at a previous job. It is an excellent, artfully crafted library; really the pinnacle of software engineering in my opinion.", "excerpt": "I used Slug at a previous job. It is an excellent, artfully crafted library; really the pinnacle of software engineering in my opinion. Thanks to the author for donating the algorithm to the public domain!", "context": "", "use_case": "text rendering", "switched_from": "", "story": "Slug Text Rendering Algorithm Dedicated to Public Domain"}]}], "caveats": [], "who": [], "tags": [], "use_cases": ["gpu text rendering", "text rendering"], "compared": [], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=49908962", "title": "SDF vs. MSDF vs. Slug: GPU Text Rendering", "mentions": 3}, {"url": "https://news.ycombinator.com/item?id=48609054", "title": "Show HN: Criterion Closet as a website \u2013 pull any of 1,247 films off the shelf", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47416736", "title": "Slug Text Rendering Algorithm Dedicated to Public Domain", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {}, "2026-01": {}, "2026-02": {}, "2026-03": {"recommend": 1}, "2026-04": {}, "2026-05": {}, "2026-06": {"recommend": 1}, "2026-07": {}, "2026-08": {}, "2026-09": {"compare": 1, "neutral": 1, "recommend": 1}, "2026-10": {}}, "quotes": [{"id": 798630897, "item_id": 49914431, "url": "https://news.ycombinator.com/item?id=49914431", "by": "psyclyx", "date": "2026-09-30", "stance": "recommend", "quote": "Slug is a very cool algorithm.", "excerpt": "Slug mentioned! When the Slug patent was released to the public domain, I put together[1] Snail[2], a Slug implementation in Zig. One thing I found was that it was tough to get small text to look good with some fonts. TrueType fonts often have bytecode that tweaks curve points to better fit the pixel grid at a particular size. Part of the pitch for Slug is that it doesn't require per-size glyph prep, so Slug text is ", "context": "", "use_case": "GPU text rendering", "switched_from": "", "story": "SDF vs. MSDF vs. Slug: GPU Text Rendering"}, {"id": 798552208, "item_id": 49909513, "url": "https://news.ycombinator.com/item?id=49909513", "by": "flohofwoe", "date": "2026-09-30", "stance": "neutral", "quote": "Here's a simple Slug rendering example on top of sokol_gfx.h", "excerpt": "Here's a simple Slug rendering example on top of sokol_gfx.h: via WebGPU backend: https://floooh.github.io/sokol-webgpu/slug-sapp.html via WebGL2 backend: https://floooh.github.io/sokol-html5/slug-sapp.html There's quite a bit of helper code plus stb_truetype.h and stb_ds.h under the hood to parse TTF files and crunch the TTF curve data into the runtime format expected by the Slug shader (this stuff should better go ", "context": "", "use_case": "GPU text rendering", "switched_from": "", "story": "SDF vs. MSDF vs. Slug: GPU Text Rendering"}, {"id": 798548305, "item_id": 49909269, "url": "https://news.ycombinator.com/item?id=49909269", "by": "bel8", "date": "2026-09-30", "stance": "compare", "quote": "But slug wins in perspective in my eyes.", "excerpt": "MSDF looks better than Slug for me in the first example. But slug wins in perspective in my eyes. I use MSDF to render crisp text in my webgl hobby game. Hope to publish it with source code when I get the time. thanks for sharing the article. I'll take a deeper look at it later.", "context": "hobby game developer", "use_case": "GPU text rendering", "switched_from": "", "story": "SDF vs. MSDF vs. Slug: GPU Text Rendering"}, {"id": 778048864, "item_id": 48628054, "url": "https://news.ycombinator.com/item?id=48628054", "by": "klaussilveira", "date": "2026-06-22", "stance": "recommend", "quote": "Have you considered Slug https://github.com/EricLengyel/Slug ?", "excerpt": "The text really needs some better rendering technique. It is very hard to read. Have you considered Slug https://github.com/EricLengyel/Slug ?", "context": "", "use_case": "text rendering", "switched_from": "", "story": "Show HN: Criterion Closet as a website \u2013 pull any of 1,247 films off the shelf"}, {"id": 758705248, "item_id": 47419078, "url": "https://news.ycombinator.com/item?id=47419078", "by": "astroalex", "date": "2026-03-17", "stance": "recommend", "quote": "I used Slug at a previous job. It is an excellent, artfully crafted library; really the pinnacle of software engineering in my opinion.", "excerpt": "I used Slug at a previous job. It is an excellent, artfully crafted library; really the pinnacle of software engineering in my opinion. Thanks to the author for donating the algorithm to the public domain!", "context": "", "use_case": "text rendering", "switched_from": "", "story": "Slug Text Rendering Algorithm Dedicated to Public Domain"}]}