fix: add Linux CJK font paths for desktop pet bubble text rendering (#248)

Co-authored-by: Kailigithub <Kailigithub@users.noreply.github.com>
This commit is contained in:
KailigithubandKailigithub authored and GitHub committed 2026-05-02 12:32:16 +08:00
1 parent 05d542a9a0
commit 1e2cd63165
1 file changed
+5
+5
View File
@@ -82,6 +82,11 @@ def _load_default_font(size):
'C:/Windows/Fonts/msyh.ttc',
'C:/Windows/Fonts/simhei.ttf',
'C:/Windows/Fonts/arial.ttf',
'/usr/share/fonts/truetype/noto/NotoSansCJK-Regular.ttc',
'/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc',
'/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc',
'/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf',
'/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc',
]
for font_path in font_candidates:
if os.path.exists(font_path):