bug 797398 - use harfbuzz for all text shaping on Linux. r=jdaggett
authorJonathan Kew <jkew@mozilla.com>
Tue, 09 Oct 2012 14:38:09 +0100
changeset 109750 baefffd93dc19260751f98e0896128cdbfa22791
parent 109749 499af47f62ebf901d89477ab4aed6103b22b7665
child 109751 52c773840b0083db00c24c171b9d6f1824f2f82a
push id23652
push userryanvm@gmail.com
push dateWed, 10 Oct 2012 01:10:20 +0000
treeherdermozilla-central@5cca0408a73f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett
bugs797398
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 797398 - use harfbuzz for all text shaping on Linux. r=jdaggett
modules/libpref/src/init/all.js
--- a/modules/libpref/src/init/all.js
+++ b/modules/libpref/src/init/all.js
@@ -227,28 +227,22 @@ pref("gfx.font_rendering.graphite.enable
 //  SHAPING_HEBREW    = 0x0004,
 //  SHAPING_HANGUL    = 0x0008,
 //  SHAPING_MONGOLIAN = 0x0010,
 //  SHAPING_INDIC     = 0x0020,
 //  SHAPING_THAI      = 0x0040
 // (see http://mxr.mozilla.org/mozilla-central/ident?i=ShapingType)
 // Scripts not listed are grouped in the default category.
 // Set the pref to -1 to have all text shaped via the harfbuzz backend.
-#ifdef XP_MACOSX
-// use harfbuzz for all scripts (except when using AAT fonts)
-pref("gfx.font_rendering.harfbuzz.scripts", -1);
-#else
-#ifdef ANDROID
-// use harfbuzz for everything, as we don't have a platform script-shaping lib
-// to fall back on anyhow, and Indic support is coming along well
-pref("gfx.font_rendering.harfbuzz.scripts", -1);
-#else
+#ifdef XP_WIN
 // use harfbuzz for default (0x01) + arabic (0x02) + hebrew (0x04)
 pref("gfx.font_rendering.harfbuzz.scripts", 7);
-#endif
+#else
+// use harfbuzz for all scripts
+pref("gfx.font_rendering.harfbuzz.scripts", -1);
 #endif
 
 #ifdef XP_WIN
 pref("gfx.font_rendering.directwrite.enabled", false);
 pref("gfx.font_rendering.directwrite.use_gdi_table_loading", true);
 #endif
 
 pref("gfx.font_rendering.opentype_svg.enabled", false);