diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-07-08 15:38:30 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-07-26 08:38:05 +0300 |
commit | 36ef8f29dcea579aab058e1778303e10360c7e83 (patch) | |
tree | a8206b91fb0d26e5ec550bcbdaaaf151eb3b80ab /platform/linuxbsd/detect.py | |
parent | 3e0e84a54c1c5666c32dbc2abd419b61e071ba33 (diff) | |
download | redot-engine-36ef8f29dcea579aab058e1778303e10360c7e83.tar.gz |
Implement support for loading system fonts on Linux, macOS / iOS and Windows.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r-- | platform/linuxbsd/detect.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py index 065250c40e..b9cbf9b97c 100644 --- a/platform/linuxbsd/detect.py +++ b/platform/linuxbsd/detect.py @@ -298,6 +298,12 @@ def configure(env): ## Flags + if os.system("pkg-config --exists fontconfig") == 0: # 0 means found + env.Append(CPPDEFINES=["FONTCONFIG_ENABLED"]) + env.ParseConfig("pkg-config fontconfig --cflags --libs") + else: + print("Warning: fontconfig libraries not found. Disabling the system fonts support.") + if os.system("pkg-config --exists alsa") == 0: # 0 means found env["alsa"] = True env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"]) |