diff --git a/gfx/thebes/src/gfxAtsuiFonts.cpp b/gfx/thebes/src/gfxAtsuiFonts.cpp index de364c86690..ffb8c2a9938 100644 --- a/gfx/thebes/src/gfxAtsuiFonts.cpp +++ b/gfx/thebes/src/gfxAtsuiFonts.cpp @@ -702,16 +702,17 @@ gfxAtsuiFontGroup::WhichPrefFontSupportsChar(PRUint32 aCh) for (i = 0; i < numLangs; i++) { nsAutoTArray, 5> families; + eFontPrefLang currentLang = prefLangs[i]; gfxQuartzFontCache *fc = gfxQuartzFontCache::SharedFontCache(); // get the pref families for a single pref lang - if (!fc->GetPrefFontFamilyEntries(charLang, &families)) { - eFontPrefLang prefLangs[1] = { charLang }; + if (!fc->GetPrefFontFamilyEntries(currentLang, &families)) { + eFontPrefLang prefLangsToSearch[1] = { currentLang }; PrefFontCallbackData prefFontData(families); - gfxPlatform::ForEachPrefFont(prefLangs, 1, PrefFontCallbackData::AddFontFamilyEntry, + gfxPlatform::ForEachPrefFont(prefLangsToSearch, 1, PrefFontCallbackData::AddFontFamilyEntry, &prefFontData); - fc->SetPrefFontFamilyEntries(charLang, families); + fc->SetPrefFontFamilyEntries(currentLang, families); } // find the first pref font that includes the character diff --git a/gfx/thebes/src/gfxPlatform.cpp b/gfx/thebes/src/gfxPlatform.cpp index d5f2b2767a1..cd8a218fd37 100644 --- a/gfx/thebes/src/gfxPlatform.cpp +++ b/gfx/thebes/src/gfxPlatform.cpp @@ -391,7 +391,7 @@ gfxPlatform::GetPrefLangName(eFontPrefLang aLang) const PRUint32 kFontPrefLangCJKMask = (1 << (PRUint32) eFontPrefLang_Japanese) | (1 << (PRUint32) eFontPrefLang_ChineseTW) | (1 << (PRUint32) eFontPrefLang_ChineseCN) | (1 << (PRUint32) eFontPrefLang_ChineseHK) - | (1 << (PRUint32) eFontPrefLang_Korean); + | (1 << (PRUint32) eFontPrefLang_Korean) | (1 << (PRUint32) eFontPrefLang_CJKSet); PRBool gfxPlatform::IsLangCJK(eFontPrefLang aLang) {