Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cosmic-text is the Text Engine on every platform

Status: accepted. Date: 2026-11-05.

Shaping and rasterization are not part of libghostty-vt, so Voyager7 needs its own Text Engine. We chose cosmic-text (rustybuzz shaping, swash rasterization) on every platform, including Windows 7, over DirectWrite on Windows with a second engine for Linux and macOS. The reasons: one engine means one set of metrics and one set of bugs across platforms; it already handles Arabic in a cell grid the way we want; our local emoji presentation and fallback fixes carry over; and swash rasterizes color glyphs itself, which DirectWrite on Windows 7 cannot do.

Consequences

  • Rust is in the build. A spike on 2026-11-05 showed cosmic-text 0.19 builds as a no_std static library with a C ABI on stable Rust for x86_64-pc-windows-gnu, with no Windows API imports, so it is usable from any host language on Windows 7.
  • It costs about 1.4 MB of executable, mostly Unicode and shaping tables. That is accepted against the size goal in filepilot.md.
  • Font discovery is not part of the no_std build. Voyager7 enumerates installed fonts itself and hands font bytes to the engine.