Daegun 2.0.0 is out!

Hey y'all,

daegun 2.0.0 is out. In 1.2.0 I took the rasterizers out. 2.0.0 has one again, a new one: exact where contours overlap, and the same bytes on every CPU. The calls for drawing with your own rasterizer stay, renamed: glyph_quads is now quads and colr_scene is color_scene.

Also since 1.2.0:

  • Audited end to end: fonts that could hang it, crash it or make it hold gigabytes no longer can
  • The shaper, the TrueType interpreter and the CFF hinter rewritten from the specs, on Unicode 18
  • Fonts past 65,535 glyphs, and Thai, Lao, Khmer and Myanmar break between words with the dictionaries feature

Against HarfBuzz 15.1.0 and FreeType 2.15.0, built at -O3 with LTO: shaping is on par with HarfBuzz with identical output, redrawing a glyph is faster than FreeType in 23 of 24 cases, and a glyph's first draw is slower.

Heads-up: it's a breaking release. The Rust API was rebuilt around font units as f64, UTF-8 byte offsets and variable font locations resolved once, and it needs Rust 1.99.

Every frame of this clip was drawn by daegun:

Docs, at a new address: Text and shaping engine for Rust and C · daegun
Release notes: Release daegun 2.0.0 · zztaeha/daegun · GitHub

Feedback is very welcome!