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_stdstatic library with a C ABI on stable Rust forx86_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_stdbuild. Voyager7 enumerates installed fonts itself and hands font bytes to the engine.