From f86448520a1c7c3957a3c929c461635cb3bdf5ed Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Wed, 27 Jul 2022 17:21:04 +0300 Subject: Fix Linux build without fontconfig. --- platform/linuxbsd/os_linuxbsd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/linuxbsd') diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp index bf4634a4fd..7a7a99534a 100644 --- a/platform/linuxbsd/os_linuxbsd.cpp +++ b/platform/linuxbsd/os_linuxbsd.cpp @@ -371,7 +371,7 @@ Vector OS_LinuxBSD::get_system_fonts() const { } return ret; #else - ERR_FAIL_COND_V_MSG(Vector(), "Godot was compiled without fontconfig, system font support is disabled.") + ERR_FAIL_V_MSG(Vector(), "Godot was compiled without fontconfig, system font support is disabled."); #endif } @@ -410,10 +410,10 @@ String OS_LinuxBSD::get_system_font_path(const String &p_font_name, bool p_bold, FcPatternDestroy(pattern); } FcObjectSetDestroy(object_set); + return ret; #else - ERR_FAIL_COND_V_MSG(Vector(), "Godot was compiled without fontconfig, system font support is disabled.") + ERR_FAIL_V_MSG(String(), "Godot was compiled without fontconfig, system font support is disabled."); #endif - return ret; } String OS_LinuxBSD::get_config_path() const { -- cgit v1.2.3