From 43d03ac081f65c763689a83e49767f8828cfaa28 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Sun, 22 Mar 2026 00:39:19 +0800 Subject: [PATCH] [fix] fix font path lookup for wqy/dejavu by switching from OpenType to TrueType --- src/gui/render.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/render.cpp b/src/gui/render.cpp index ae89760..7b56ce0 100644 --- a/src/gui/render.cpp +++ b/src/gui/render.cpp @@ -1276,9 +1276,9 @@ int Render::SetupFontAndStyle(ImFont** system_chinese_font_out) { const char* base_font_paths[] = { "/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", + "/usr/share/fonts/truetype/wqy/wqy-microhei.ttc", + "/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc", + "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", nullptr}; #endif