We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f205ec commit cc204eaCopy full SHA for cc204ea
src/lcui_fonts.c
@@ -62,7 +62,7 @@ static void lcui_fc_fonts_init(void)
62
63
for (i = 0; i < sizeof(fonts) / sizeof(char *); ++i) {
64
path = pd_font_library_get_font_path(fonts[i]);
65
- id = pd_font_library_load_file(path);
+ pd_font_library_load_file(path);
66
free(path);
67
// TODO: 使用系统已设置的默认字体
68
if (!has_default) {
xmake.lua
@@ -79,6 +79,9 @@ target("lcui")
79
elseif is_plat("windows") then
80
add_defines("LCUI_DLL_EXPORT")
81
end
82
+ if has_package("fontconfig") then
83
+ add_defines("HAVE_FONTCONFIG")
84
+ end
85
add_configfiles("src/config.h.in")
86
set_configdir("include/LCUI")
87
add_deps(
0 commit comments