summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/gfxFcPlatformFontList.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-03-27 21:14:03 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-27 21:14:03 +0200
commitcb59151acd51f4317c563bc6a3448a9c02a24e12 (patch)
tree12e4841b5dff7dd3218a9b3c290cd190bee67f79 /gfx/thebes/gfxFcPlatformFontList.cpp
parent424ed1b165e50f2e71c082c0c70fcda2a2764d18 (diff)
downloadUXP-cb59151acd51f4317c563bc6a3448a9c02a24e12.tar
UXP-cb59151acd51f4317c563bc6a3448a9c02a24e12.tar.gz
UXP-cb59151acd51f4317c563bc6a3448a9c02a24e12.tar.lz
UXP-cb59151acd51f4317c563bc6a3448a9c02a24e12.tar.xz
UXP-cb59151acd51f4317c563bc6a3448a9c02a24e12.zip
Use FC_OUTLINE instead of FC_SCALABLE with Fontconfig to check if a font is scalable.
Diffstat (limited to 'gfx/thebes/gfxFcPlatformFontList.cpp')
-rw-r--r--gfx/thebes/gfxFcPlatformFontList.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}