mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-04-04 00:35:19 +08:00
[fix] fix Linux fonts: use opentype instead of truetype
This commit is contained in:
@@ -1246,11 +1246,11 @@ int Render::SetupFontAndStyle(ImFont** system_chinese_font_out) {
|
|||||||
"/System/Library/Fonts/SFNS.ttf", nullptr};
|
"/System/Library/Fonts/SFNS.ttf", nullptr};
|
||||||
#else
|
#else
|
||||||
const char* base_font_paths[] = {
|
const char* base_font_paths[] = {
|
||||||
"/usr/share/fonts/truetype/noto/NotoSansCJK-Regular.ttc",
|
"/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc",
|
||||||
"/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf",
|
"/usr/share/fonts/opentype/noto/NotoSans-Regular.ttf",
|
||||||
"/usr/share/fonts/truetype/wqy/wqy-microhei.ttc",
|
"/usr/share/fonts/opentype/wqy/wqy-microhei.ttc",
|
||||||
"/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc",
|
"/usr/share/fonts/opentype/wqy/wqy-zenhei.ttc",
|
||||||
"/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf",
|
"/usr/share/fonts/opentype/dejavu/DejaVuSans.ttf",
|
||||||
nullptr};
|
nullptr};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user