fix(color): bold font fallback for non-Latin languages (#7815)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Peter Feerick
2026-09-24 17:31:51 +10:00
committed by GitHub
co-authored by Claude Opus 5.5
parent be527efc1c
commit 61aa7a44c9
+3 -7
View File
@@ -440,13 +440,9 @@ void decompressFont(int idx, etxLvglFont* fonts)
}
#endif
if (idx == FONT_BOLD_INDEX) {
// BOLD font falls back to STD for missing chars
#if defined(ALL_LANGS)
lvglFont->fallback = en_fontTable[FONT_STD_INDEX].lvglFont;
#else
lvglFont->fallback = fontTable[FONT_STD_INDEX].lvglFont;
#endif
if (idx == FONT_BOLD_INDEX && fonts[idx].lz4Font == &lv_font_en_bold_STD) {
// EN BOLD font falls back to EN STD for missing chars
lvglFont->fallback = fonts[FONT_STD_INDEX].lvglFont;
}
// Set LVGL font loaded flag