Use FC_OUTLINE instead of FC_SCALABLE with Fontconfig to check if a font is scalable.

This commit is contained in:
wolfbeast 2018-03-27 21:14:03 +02:00 committed by Roy Tam
commit 2c33a1ce08

View file

@ -946,9 +946,9 @@ gfxFontconfigFontFamily::AddFontPattern(FcPattern* aFontPattern)
NS_ASSERTION(!mHasStyles,
"font patterns must not be added to already enumerated families");
FcBool scalable;
if (FcPatternGetBool(aFontPattern, FC_SCALABLE, 0, &scalable) != FcResultMatch ||
!scalable) {
FcBool outline;
if (FcPatternGetBool(aFontPattern, FC_OUTLINE, 0, &outline) != FcResultMatch ||
!outline) {
mHasNonScalableFaces = true;
}