mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1167281 - sort scalable fonts first when resolving generic families under Linux. r=karlt
This commit is contained in:
parent
9451e667ca
commit
d97175f91e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user