Allow bitmap fonts to force scaling and bypass tolerance check in gfxFcPlatformFontList.

This commit is contained in:
wolfbeast 2018-03-27 21:20:57 +02:00 • committed by Roy Tam
commit 4a9865465f
2 changed files with 23 additions and 4 deletions

View file

@ -175,7 +175,8 @@ public:
explicit gfxFontconfigFontFamily(const nsAString& aName) :
gfxFontFamily(aName),
mContainsAppFonts(false),
mHasNonScalableFaces(false)
mHasNonScalableFaces(false),
mForceScalable(false)
{ }
void FindStyleVariations(FontInfoData *aFontInfoData = nullptr) override;
@ -201,6 +202,7 @@ protected:
bool mContainsAppFonts;
bool mHasNonScalableFaces;
bool mForceScalable;
};
class gfxFontconfigFont : public gfxFontconfigFontBase {