mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 10:40:45 +00:00
The bundled craft-fonts Japanese, Georgian and Devanagari faces now get the same baseline shift as installed fallback faces, so every glyph in an interface label sits on the baseline of its family's first face. Each fallback face's shift is measured against the first face of the family it is added to (Inter for the proportional families, JetBrains Mono for `mono`, egui's face for `Monospace`). Families whose first faces need the same shift share one copy of the face; the others get a copy named after their first face. Tests: craft_fonts_sit_on_the_baseline_of_each_family checks each bundled face in every family against its own baseline, and fallback_faces_sit_on_the_ui_baseline now checks every family, monospace ones included.