Skip to content

Phase 4.1: Cross-platform font spike #27

Description

@danielmrdev

Parent

Part of #25 — Phase 4: Settings and appearance.

What to build

Establish the two font capabilities every other font-dependent Phase 4 slice relies on, and verify them on each supported platform before product code claims them: resolving the operating system's configured monospaced Typeface rather than an accidental renderer generic, and safely registering app-local TTF bytes and reflowing the editor when a Typeface or weight changes.

Acceptance criteria

  • A cross-platform adapter resolves the OS-configured monospaced Typeface on Linux, macOS, and Windows, distinct from the renderer's generic monospace fallback.
  • Bundled and cached TTF bytes register into Lettera's process-local font database and render in the editor.
  • Changing Typeface, real weight, or size live reflows editor layout safely without corrupting Document content, undo/redo history, or logical caret offset.
  • A selected Typeface's real weights match reliably; no synthetic bold and no unverified variable-font axis behaviour is assumed.
  • Evidence, verified behavior, and remaining limits are recorded in the font-delivery research note; the production plan does not claim behavior the spike did not verify.

Blocked by

None — can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions