mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
Both themes set `fontFamily: Inter`, and Inter carries no Ge'ez glyphs. So every Amharic string in a bilingual system — 45-73 KB of locale data per app — has been rendering in whatever font the OS happened to substitute: different on Windows, macOS and Android, and matching neither the design nor each other. Noto Sans Ethiopic goes directly after Inter in one stack rather than being swapped in under `[lang='am']`. Browsers fall back per glyph, not per element, so a single stack renders Latin in Inter and Ge'ez in Noto automatically — including within one string. That is the case that matters here: a registry is full of mixed-script lines like an Amharic name beside a Latin IMO number, and a language-scoped swap renders half of those in the wrong face. Heading line-heights go up a step at the same time. Ge'ez has taller ascenders and deeper descenders than Latin, so headings set to Inter's natural leading clip once Ethiopic is actually being rendered. This was deliberately held back from the theme refactor so that change could prove it altered nothing. The gallery gains Ge'ez headings and a mixed-script line, so the baselines cover the case rather than only Latin. Follow-up: both fonts still load from Google Fonts via a render-blocking CSS @import. Self-hosting with a subset and preload links is worth doing — government networks frequently make fonts.googleapis.com slow or unreachable, and silent Amharic fallback is precisely the failure this commit fixes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
211 KiB
1440x3155px
211 KiB
1440x3155px