summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/os_linuxbsd.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-02 18:51:02 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-02 18:51:02 +0100
commitfd1e579aa78258b91e658b5b4b9a3fc94d0a0ef4 (patch)
treeff5c92a9500ccdc34383321b479c4738caf1376e /platform/linuxbsd/os_linuxbsd.cpp
parent76092fb6841e5f56c37b983400828971a5559f2c (diff)
parent060d62e0dc094ac7c4f15020c6921ac582f29977 (diff)
downloadredot-engine-fd1e579aa78258b91e658b5b4b9a3fc94d0a0ef4.tar.gz
Merge pull request #68090 from bruvzg/sys_emoji
Load and use system emoji font in the editor.
Diffstat (limited to 'platform/linuxbsd/os_linuxbsd.cpp')
-rw-r--r--platform/linuxbsd/os_linuxbsd.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp
index 11b667fcef..db9b3ed77f 100644
--- a/platform/linuxbsd/os_linuxbsd.cpp
+++ b/platform/linuxbsd/os_linuxbsd.cpp
@@ -481,7 +481,16 @@ Error OS_LinuxBSD::shell_open(String p_uri) {
}
bool OS_LinuxBSD::_check_internal_feature_support(const String &p_feature) {
- return p_feature == "pc";
+#ifdef FONTCONFIG_ENABLED
+ if (p_feature == "system_fonts") {
+ return font_config_initialized;
+ }
+#endif
+ if (p_feature == "pc") {
+ return true;
+ }
+
+ return false;
}
uint64_t OS_LinuxBSD::get_embedded_pck_offset() const {