mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Implement support for loading system fonts on Linux, macOS / iOS and Windows.
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user