зеркало из https://github.com/mozilla/pjs.git
Errata to bug 116030. Fix in the detection of the language group of a character to pick better fallback fonts, b=184848, r=smontagu, sr=bzbarsky
This commit is contained in:
Родитель
eed22617af
Коммит
466cdcd0f9
|
@ -3260,7 +3260,7 @@ nsFontMetricsWin::FindPrefFont(HDC aDC, PRUint32 aChar)
|
|||
// figure out which one comes first. As a final fallback, unicode preference is always tried.
|
||||
|
||||
PRUint32 unicodeRange = FindCharUnicodeRange(aChar);
|
||||
if (unicodeRange > kRangeSpecificItemNum) {
|
||||
if (unicodeRange < kRangeSpecificItemNum) {
|
||||
// a single language is identified
|
||||
AppendGenericFontFromPref(font.name, LangGroupFromUnicodeRange(unicodeRange),
|
||||
NS_ConvertUCS2toUTF8(mGeneric).get());
|
||||
|
|
Загрузка…
Ссылка в новой задаче