1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Fix Linux build without fontconfig.

This commit is contained in:
bruvzg
2022-07-27 17:21:04 +03:00
parent 4e9640b3ec
commit f86448520a

View File

@@ -371,7 +371,7 @@ Vector<String> OS_LinuxBSD::get_system_fonts() const {
} }
return ret; return ret;
#else #else
ERR_FAIL_COND_V_MSG(Vector<String>(), "Godot was compiled without fontconfig, system font support is disabled.") ERR_FAIL_V_MSG(Vector<String>(), "Godot was compiled without fontconfig, system font support is disabled.");
#endif #endif
} }
@@ -410,10 +410,10 @@ String OS_LinuxBSD::get_system_font_path(const String &p_font_name, bool p_bold,
FcPatternDestroy(pattern); FcPatternDestroy(pattern);
} }
FcObjectSetDestroy(object_set); FcObjectSetDestroy(object_set);
#else
ERR_FAIL_COND_V_MSG(Vector<String>(), "Godot was compiled without fontconfig, system font support is disabled.")
#endif
return ret; return ret;
#else
ERR_FAIL_V_MSG(String(), "Godot was compiled without fontconfig, system font support is disabled.");
#endif
} }
String OS_LinuxBSD::get_config_path() const { String OS_LinuxBSD::get_config_path() const {