Status: Accepted (2026-11-27)
src/font.ts rasterises system-ui at startup, so glyph advances differ per OS. With multiplayer, auto-sized text boxes and wrapping would differ between peers, and the server/MCP (no canvas) cannot measure text at all.
Ship one OFL font (Inter, 400/700) with the web app. A generator (tools/gen-font-metrics.mjs) writes advance widths, ascent/descent and kerning-free metrics into packages/doc/src/text/metrics.ts; TextMeasurer (shared contract) uses it everywhere. The engine builds its SDF atlas from the bundled font via FontFace. The author of a text edit writes the resulting w/h in the same SET op, so even a metrics bug cannot make peers disagree on boxes.
System fonts (non-deterministic), server-side canvas (native dependency), syncing glyph positions (huge ops).
Non-Latin scripts need atlas pages and metrics later (out of scope; atlas covers ASCII today).