Skip to content

Commit 70f1809

Browse files
committed
Use HarfBuzz to fix variant hinting in TextServerAdvanced
1 parent 295e465 commit 70f1809

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/freetype/SCsub

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ if env["builtin_freetype"]:
7272
if env["builtin_libpng"]:
7373
env_freetype.Prepend(CPPPATH=["#thirdparty/libpng"])
7474

75+
if "text_server_adv" in env.module_list:
76+
# HarfBuzz is only available if TextServerAdvanced is enabled
77+
env_freetype.Append(CPPDEFINES=["FT_CONFIG_OPTION_USE_HARFBUZZ"])
78+
if env["builtin_harfbuzz"]:
79+
env_freetype.Prepend(CPPPATH=["#thirdparty/harfbuzz/src/"])
80+
7581
sfnt = thirdparty_dir + "src/sfnt/sfnt.c"
7682
# Must be done after all CPPDEFINES are being set so we can copy them.
7783
if env["platform"] == "web":

0 commit comments

Comments
 (0)