mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 10:46:50 -06:00
A Japanese (or Chinese/Korean) workbook opened fine — the engine reads the strings correctly — but every kanji and kana drew as a .notdef box, because egui's bundled fonts carry no CJK coverage and nothing added a CJK face to the fallback chain. Append a system CJK face to every font family (UI, cell, serif, mono): a Japanese face first for correct kana/JIS kanji, a Chinese face for breadth, and a Hangul face for Korean. epaint picks the first face in a family that has the glyph, so Latin still renders from the Latin fonts and only Han/Kana/Hangul reach the CJK fonts. No font bytes are bundled (AGENTS.md): families are loaded from the OS, and a machine with no CJK font simply keeps the old behaviour. Tests: the CJK keys end every family chain (Latin stays first); and the proportional family resolves 「カテゴリ」 to real glyphs, not the replacement character — verified to fail without the fallback.