mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-19 08:26:19 +00:00
Served script fallbacks were appended to every UI font family in the order they arrived. A Japanese and a Simplified Chinese face both cover Han, and egui draws a character with the first face in the stack that has it, so a Chinese interface drew Han with the Japanese face when that one had arrived first (fetched for a Japanese text layer, say). ui_faces now puts the interface language's own served face first, so the stack a language change rebuilds follows the language; and when that face arrives after another served face, add_ui_face rebuilds the stack the same way instead of appending. served::fallback_for_language gives the face. This orders the served faces only; with an interface language that has no served face (English), they stay in arrival order. Review finding on #10006. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>