1
0
Fork 0

Merge pull request #111461 from DeeJayLSP/fthb

Use HarfBuzz to fix variant hinting in `TextServerAdvanced`
This commit is contained in:
Thaddeus Crews 2025-10-13 19:28:44 -05:00
commit 3dbd7d36d0
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,12 @@ if env["builtin_freetype"]:
if env["builtin_libpng"]:
env_freetype.Prepend(CPPPATH=["#thirdparty/libpng"])
if "text_server_adv" in env.module_list:
# HarfBuzz is only available if TextServerAdvanced is enabled
env_freetype.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_HARFBUZZ"])
if env["builtin_harfbuzz"]:
env_freetype.Prepend(CPPPATH=["#thirdparty/harfbuzz/src/"])
sfnt = thirdparty_dir + "src/sfnt/sfnt.c"
# Must be done after all CPPDEFINES are being set so we can copy them.
if env["platform"] == "web":