Skip to content

Phase 4.1: cross-platform font spike - #34

Merged
danielmrdev merged 7 commits into
mainfrom
feat/phase-4.1-font-spike
Aug 5, 2026
Merged

Phase 4.1: cross-platform font spike#34
danielmrdev merged 7 commits into
mainfrom
feat/phase-4.1-font-spike

Conversation

@danielmrdev

Copy link
Copy Markdown
Owner

Closes #27.

Spike evidence + prototype adapter (Linux verified; macOS/Windows stubs documented):

  • src/fonts.rs: resolve_os_monospace() via fontconfig fc-match on Linux; None stubs elsewhere. 6 spike tests at the shaping seam.
  • Key finding: cosmic-text shapes Family::Monospace from its own first monospaced face and ignores fontdb's generic remap — the editor must use explicit FamilyOwned::Name (Phase 4.5).
  • App-local TTF registration verified (bytes alone resolve a family in a clean database; real Regular/Bold faces match distinctly; no synthetic bold).
  • docs/font-delivery-research.md: spike verification section + pending cross-platform list (manual cells deferred to Phase 4.7 on physical machines).

CI note: OS-dependent tests are #[cfg(target_os = \linux\)]; the remap test runs on all three platforms. macOS/Windows adapter behavior remains unverified by design until Phase 4.5.

@danielmrdev
danielmrdev merged commit 3d40234 into main Aug 5, 2026
8 checks passed
@danielmrdev
danielmrdev deleted the feat/phase-4.1-font-spike branch August 5, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 4.1: Cross-platform font spike

1 participant