[fix] fix Linux fonts: use opentype instead of truetype

This commit is contained in:
dijunkun
2026-03-20 13:01:13 +08:00
parent 1d6425bbf4
commit 4b1b09fd5b

View File

@@ -1246,11 +1246,11 @@ int Render::SetupFontAndStyle(ImFont** system_chinese_font_out) {
"/System/Library/Fonts/SFNS.ttf", nullptr};
#else
const char* base_font_paths[] = {
"/usr/share/fonts/truetype/noto/NotoSansCJK-Regular.ttc",
"/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf",
"/usr/share/fonts/truetype/wqy/wqy-microhei.ttc",
"/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc",
"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
"/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc",
"/usr/share/fonts/opentype/noto/NotoSans-Regular.ttf",
"/usr/share/fonts/opentype/wqy/wqy-microhei.ttc",
"/usr/share/fonts/opentype/wqy/wqy-zenhei.ttc",
"/usr/share/fonts/opentype/dejavu/DejaVuSans.ttf",
nullptr};
#endif