зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1243226 - relax the limit on fontconfig generics. r=heycam, a=me
This commit is contained in:
Родитель
c732ee5f50
Коммит
03e62378ba
|
@ -1554,10 +1554,8 @@ gfxFcPlatformFontList::FindGenericFamilies(const nsAString& aGeneric,
|
|||
bool foundLang = !fcLang.IsEmpty() &&
|
||||
PatternHasLang(font, ToFcChar8Ptr(fcLang.get()));
|
||||
foundFontWithLang = foundFontWithLang || foundLang;
|
||||
// stop at the first family for which the lang matches (or
|
||||
// when there is no lang)
|
||||
if (fcLang.IsEmpty() ||
|
||||
prefFonts->Length() >= limit || foundLang) {
|
||||
// check to see if the list is full
|
||||
if (prefFonts->Length() >= limit) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче