From 4b1b09fd5b4c7fb6f78b7e057c3c051b6242313a Mon Sep 17 00:00:00 2001 From: dijunkun Date: Fri, 20 Mar 2026 13:01:13 +0800 Subject: [PATCH] [fix] fix Linux fonts: use opentype instead of truetype --- src/gui/render.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/render.cpp b/src/gui/render.cpp index 13a0e35..86e8c07 100644 --- a/src/gui/render.cpp +++ b/src/gui/render.cpp @@ -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