mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Implement support for loading system fonts on Linux, macOS / iOS and Windows.
This commit is contained in:
parent
3e0e84a54c
commit
36ef8f29dc
27 changed files with 1089 additions and 54 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue