You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00: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