Show HN: All-in-one text engine – zero dependencies

silly-tae1 pts0 comments

daegunSkip to contentdaegun<br>daegun turns a font file and a string into positioned, rasterized glyphs. It parses TrueType and OpenType, shapes complex scripts, breaks and lays out lines, hints, rasterizes on the CPU or the GPU, and subsets a font down to the glyphs a page actually uses. One crate does all of it, and a C ABI sits alongside the Rust API rather than behind it.<br>There are no dependencies at all, so the supply chain is the Rust compiler and nothing else. The parsers and the shaper forbid unsafe code outright, enforced by the compiler rather than by discipline: a font file is data from strangers, and daegun treats it that way.<br>Start here<br>Install it, for Rust or for C.<br>Open a font and shape a string.<br>Look something up among the 876 documented names.<br>The source is at github.com/silly-tae/daegun.

Type to search.

font daegun rust dependencies file string

Related Articles