Browse Source

text: Enable text-use-harfbuzz by default, if compiled in

See #1591
rdb 1 year ago
parent
commit
0dad38d089
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/text/config_text.cxx

+ 4 - 0
panda/src/text/config_text.cxx

@@ -62,7 +62,11 @@ ConfigVariableBool text_kerning
           "is true, since HarfBuzz offers superior kerning support."));
           "is true, since HarfBuzz offers superior kerning support."));
 
 
 ConfigVariableBool text_use_harfbuzz
 ConfigVariableBool text_use_harfbuzz
+#ifdef HAVE_HARFBUZZ
+("text-use-harfbuzz", true,
+#else
 ("text-use-harfbuzz", false,
 ("text-use-harfbuzz", false,
+#endif
  PRC_DESC("Set this true to enable HarfBuzz support, which offers superior "
  PRC_DESC("Set this true to enable HarfBuzz support, which offers superior "
           "text shaping and better support for non-Latin text."));
           "text shaping and better support for non-Latin text."));