ui: use full Noto Sans SC fallback font so Chinese renders correctly

This commit is contained in:
Codex
2026-08-15 08:20:11 +00:00
parent 69fb6729fe
commit 169c9f278a
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -693,6 +693,10 @@ class GuiApplication(GuiApplicationExt):
pass
def font(self, font_weight: FontWeight = FontWeight.NORMAL) -> rl.Font:
# Use the CJK fallback font for languages that need it so every
# draw call renders Chinese/Japanese/Korean/Thai glyphs properly.
if multilang.requires_font_fallback():
return self.fallback_font()
return self._fonts[font_weight]
def fallback_font(self) -> rl.Font: