Bug 1167281 - sort scalable fonts first when resolving generic families under Linux. r=karlt

This commit is contained in:
John Daggett 2015-05-27 16:19:27 +09:00
parent 9451e667ca
commit d97175f91e

View File

@ -1354,6 +1354,9 @@ gfxFcPlatformFontList::FindGenericFamily(const nsAString& aGeneric,
FcPatternAddString(genericPattern, FC_FAMILY,
ToFcChar8Ptr(generic.get()));
// -- prefer scalable fonts
FcPatternAddBool(genericPattern, FC_SCALABLE, FcTrue);
// -- add the lang to the pattern
if (!fcLang.IsEmpty()) {
FcPatternAddString(genericPattern, FC_LANG,