bug 672955 - prefer harfbuzz to core text backend for Thai OT fonts on OS X. r=jdaggett

This commit is contained in:
Jonathan Kew 2011-07-26 10:47:36 +01:00
parent 49813e1741
commit 15cc1d8920
3 changed files with 8 additions and 4 deletions

View File

@ -187,6 +187,10 @@ gfxUnicodeProperties::ScriptShapingType(PRInt32 aScriptCode)
case HB_SCRIPT_MONGOLIAN: // to be supported by the Arabic shaper?
return SHAPING_MONGOLIAN;
case HB_SCRIPT_THAI: // no complex OT features, but MS engines like to do
// sequence checking
return SHAPING_THAI;
case HB_SCRIPT_BENGALI:
case HB_SCRIPT_DEVANAGARI:
case HB_SCRIPT_GUJARATI:
@ -198,7 +202,6 @@ gfxUnicodeProperties::ScriptShapingType(PRInt32 aScriptCode)
case HB_SCRIPT_TAMIL:
case HB_SCRIPT_TELUGU:
case HB_SCRIPT_KHMER:
case HB_SCRIPT_THAI:
case HB_SCRIPT_LAO:
case HB_SCRIPT_TIBETAN:
case HB_SCRIPT_NEW_TAI_LUE:

View File

@ -71,7 +71,8 @@ public:
SHAPING_HEBREW = 0x0004,
SHAPING_HANGUL = 0x0008,
SHAPING_MONGOLIAN = 0x0010,
SHAPING_INDIC = 0x0020
SHAPING_INDIC = 0x0020,
SHAPING_THAI = 0x0040
};
static PRInt32 ScriptShapingType(PRInt32 aScriptCode);

View File

@ -203,8 +203,8 @@ pref("gfx.downloadable_fonts.sanitize", true);
// see gfx/thebes/gfxUnicodeProperties.h for definitions of script bits
#ifdef XP_MACOSX
// use harfbuzz for default (0x01) + arabic (0x02) + hebrew (0x04)
pref("gfx.font_rendering.harfbuzz.scripts", 7);
// use harfbuzz for default (0x01) + arabic (0x02) + hebrew (0x04) + thai (0x40)
pref("gfx.font_rendering.harfbuzz.scripts", 71);
#else
// use harfbuzz for default (0x01) + arabic (0x02)
pref("gfx.font_rendering.harfbuzz.scripts", 3);