b=597147 part 10: make font group language a real language for font shaping r=jfkthame

--HG--
extra : transplant_source : %BE%D9%0B%C0I%17%26%14%7E%ED9j%96%7BPE%8C%A3Q%09
This commit is contained in:
Karl Tomlinson 2010-11-11 08:46:55 +13:00
Родитель f0d51cf121
Коммит 6679953244
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -1938,6 +1938,12 @@ gfxPangoFontGroup::gfxPangoFontGroup (const nsAString& families,
: gfxFontGroup(families, aStyle, aUserFontSet),
mPangoLanguage(GuessPangoLanguage(aStyle->language))
{
// This language is passed to the font for shaping.
// Shaping doesn't know about lang groups so make it a real language.
if (mPangoLanguage) {
mStyle.language = do_GetAtom(pango_language_to_string(mPangoLanguage));
}
mFonts.AppendElements(1);
}