mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-30 10:13:56 +01:00
ui-egui's build.rs reads the optional craft-fonts input (CRAFT_FONTS_DIR, per craft-fonts' docs/integration.md) and embeds the Noto Sans faces for the nine Indian scripts (Deva, Beng, Guru, Gujr, Orya, Taml, Telu, Knda, Mlym; ~5 MB) on every target. The theme appends them after the system faces, so desktop rendering is unchanged where a system face exists and the web build, which has no system fonts, draws and shapes Indian text. Language::script() names each interface's script; the web build follows the browser's language when the build can render it. CI checks the embedded faces against a pinned craft-fonts commit (the Noto Sans Indian faces, storytold/craft-fonts#21): they draw and shape every script with no system face, and the web build compiles with them. FreeBSD and release workflows pin the same commit. A plain build is unchanged (empty table, same tests pass).