mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
Layer and object names, document tabs and any other UI text in scripts the UI fonts lack now draw in an installed font that covers them, as the canvas already did. Root cause: egui only had the bundled UI fonts (Source Sans 3, JetBrains Mono) and its defaults, none with CJK glyphs. After each frame the UI now looks at the text it painted; the first time a character the UI fonts lack appears, a thread finds an installed font covering it through the font database (the canvas's fallback search, so a font the canvas loaded is reused, its bytes shared rather than copied) and adds it to every egui family as the last fallback. Nothing is bundled, Latin-only UIs load no extra font, and on the web, without system fonts, the boxes remain. Co-Authored-By: Claude Opus 5.5 <[email protected]>