From ef4783d2978ec5edf1b90ef5a13467c6c9ee3df6 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 30 Mar 2012 14:23:36 +0300 Subject: Make it possible to enable non-scalable font scaling Windows native font engine supports scaling of non-scalalble fonts, so make it possible to do so. Added two functions to QPlatformFontDatabase: fontsAlwaysScalable() and standardSizes(), and made fontsAlwaysScalable() to return true for Windows native font database. Windows Freetype font engine doesn't seem to support scaling of non-scalable fonts, so didn't enable it in there. Added implementation of standardSizes() for Mac OS. Task-number: QTBUG-24970 Change-Id: I41c9356ede8a37b7c61db94340dbeb5b629f34b9 Reviewed-by: Friedemann Kleint Reviewed-by: Bradley T. Hughes Reviewed-by: Jiang Jiang --- src/gui/text/qplatformfontdatabase_qpa.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/text/qplatformfontdatabase_qpa.h') diff --git a/src/gui/text/qplatformfontdatabase_qpa.h b/src/gui/text/qplatformfontdatabase_qpa.h index 3810b75dbf..9fe3b0380d 100644 --- a/src/gui/text/qplatformfontdatabase_qpa.h +++ b/src/gui/text/qplatformfontdatabase_qpa.h @@ -102,6 +102,8 @@ public: virtual QFont defaultFont() const; virtual QString resolveFontFamilyAlias(const QString &family) const; + virtual bool fontsAlwaysScalable() const; + virtual QList standardSizes() const; //callback static void registerQPF2Font(const QByteArray &dataArray, void *handle); -- cgit v1.2.3