summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/os_linuxbsd.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-12-05 07:41:56 +0100
committerGitHub <noreply@github.com>2022-12-05 07:41:56 +0100
commit63578e208cdf0ac0bbeaeaeb3b0a9ed43a65f85f (patch)
treed113872f3cff2f9dbd62dd5eb31c3ed17ef75762 /platform/linuxbsd/os_linuxbsd.cpp
parent8912f3e4a7c012443e941f4c6f2342c9913fa330 (diff)
parent89db7f8e7c6971f5a20e493bab338bbaee9d0457 (diff)
downloadredot-engine-63578e208cdf0ac0bbeaeaeb3b0a9ed43a65f85f.tar.gz
Merge pull request #69592 from bruvzg/fix_no_fc
[Linux/BSD] Fix build without fontconfig.
Diffstat (limited to 'platform/linuxbsd/os_linuxbsd.cpp')
-rw-r--r--platform/linuxbsd/os_linuxbsd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp
index 25cb575199..d5a75edeea 100644
--- a/platform/linuxbsd/os_linuxbsd.cpp
+++ b/platform/linuxbsd/os_linuxbsd.cpp
@@ -616,6 +616,7 @@ Vector<String> OS_LinuxBSD::get_system_fonts() const {
#endif
}
+#ifdef FONTCONFIG_ENABLED
int OS_LinuxBSD::_weight_to_fc(int p_weight) const {
if (p_weight < 150) {
return FC_WEIGHT_THIN;
@@ -665,6 +666,7 @@ int OS_LinuxBSD::_stretch_to_fc(int p_stretch) const {
return FC_WIDTH_ULTRAEXPANDED;
}
}
+#endif // FONTCONFIG_ENABLED
Vector<String> OS_LinuxBSD::get_system_font_path_for_text(const String &p_font_name, const String &p_text, const String &p_locale, const String &p_script, int p_weight, int p_stretch, bool p_italic) const {
#ifdef FONTCONFIG_ENABLED