From cb59151acd51f4317c563bc6a3448a9c02a24e12 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Tue, 27 Mar 2018 21:14:03 +0200 Subject: Use FC_OUTLINE instead of FC_SCALABLE with Fontconfig to check if a font is scalable. --- gfx/thebes/gfxFcPlatformFontList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gfx/thebes') diff --git a/gfx/thebes/gfxFcPlatformFontList.cpp b/gfx/thebes/gfxFcPlatformFontList.cpp index 601e7a90c..3d183798f 100644 --- a/gfx/thebes/gfxFcPlatformFontList.cpp +++ b/gfx/thebes/gfxFcPlatformFontList.cpp @@ -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; } -- cgit v1.2.3