This product was not featured by Product Hunt yet. It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).
Product upvotes vs the next 3
Waiting for data. Loading
Product comments vs the next 3
Waiting for data. Loading
Product upvote speed vs the next 3
Waiting for data. Loading
Product upvotes and comments
Waiting for data. Loading
Product vs the next 3
Loading
daegun
A text and shaping engine for Rust and C, no dependencies
Drawing text takes a font parser, a shaper, line layout and a rasterizer. daegun is all four in one Rust library with a C API: complex scripts, variable and color fonts, hinting, subsetting. no_std, zero dependencies, MIT. For editors, games, PDFs and UIs.
Getting text on screen usually means stitching several libraries together, each with its own build system, its own C dependencies and decades of legacy. I wanted one library that does the whole job, read the font, shape the string, lay out the lines, and hand back pixels or outlines, without that friction, and better wherever I could make it better.
So daegun has:
- No dependencies at all. The supply chain is the Rust compiler and nothing else.
- A C API beside the Rust one, not a wrapper behind it. Every Rust call is reachable from C, bar a handful.
- No unsafe code in the engine. A font file is data from strangers, so 2,000 mutated fonts go through it before every release.
- No legacy formats. TrueType and OpenType, variable and color fonts. Formats older than OpenType, like Type 1 and BDF, are refused on purpose.
It shapes Arabic, Hebrew, Thai, Hangul, the Indic scripts and 91 more, breaks lines greedy or optimal, and rasterizes on the CPU itself. Drawing on the GPU instead? It hands your renderer what it needs: quadratic curves for shaders, outlines or polygons, whichever your pipeline takes.
It's for anyone drawing text in Rust or C: editors, games, UI toolkits, PDF tools. My own daepdf runs on it.
What would help most:
1. A font or a string that comes out wrong. Send me both and I'll look into it.
2. Where the API tripped you up on your first try.
“A text and shaping engine for Rust and C, no dependencies”
daegun was submitted on Product Hunt and earned 3 upvotes and 1 comments, placing #147 on the daily leaderboard. Drawing text takes a font parser, a shaper, line layout and a rasterizer. daegun is all four in one Rust library with a C API: complex scripts, variable and color fonts, hinting, subsetting. no_std, zero dependencies, MIT. For editors, games, PDFs and UIs.
On the analytics side, daegun competes within Open Source, Typography, Developer Tools and GitHub — topics that collectively have 653.2k followers on Product Hunt. The dashboard above tracks how daegun performed against the three products that launched closest to it on the same day.
Who hunted daegun?
daegun was hunted by Taeha. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
For a complete overview of daegun including community comment highlights and product details, visit the product overview.
Getting text on screen usually means stitching several libraries together, each with its own build system, its own C dependencies and decades of legacy. I wanted one library that does the whole job, read the font, shape the string, lay out the lines, and hand back pixels or outlines, without that friction, and better wherever I could make it better.
So daegun has:
- No dependencies at all. The supply chain is the Rust compiler and nothing else.
- A C API beside the Rust one, not a wrapper behind it. Every Rust call is reachable from C, bar a handful.
- No unsafe code in the engine. A font file is data from strangers, so 2,000 mutated fonts go through it before every release.
- No legacy formats. TrueType and OpenType, variable and color fonts. Formats older than OpenType, like Type 1 and BDF, are refused on purpose.
It shapes Arabic, Hebrew, Thai, Hangul, the Indic scripts and 91 more, breaks lines greedy or optimal, and rasterizes on the CPU itself. Drawing on the GPU instead? It hands your renderer what it needs: quadratic curves for shaders, outlines or polygons, whichever your pipeline takes.
It's for anyone drawing text in Rust or C: editors, games, UI toolkits, PDF tools. My own daepdf runs on it.
What would help most:
1. A font or a string that comes out wrong. Send me both and I'll look into it.
2. Where the API tripped you up on your first try.
3. What's missing for what you're building.
Docs, with an example for every function: https://zztaeha.dev/daegun/
Source: https://github.com/zztaeha/daegun/