зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
f0d51cf121
Коммит
6679953244
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче