diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-03-19 13:51:53 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-20 11:44:09 +0100 |
commit | 9f4d567f4357392f1a7cfdb7408dec2fc2793b41 (patch) | |
tree | ec97e6dafd3af414208389ccfb547257588b2a9f /src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h | |
parent | c4ac14fae1765cae9d5ab94c8af486e2d14dede7 (diff) |
Cocoa: set font engine glyph format based on display type
Make the QCoreTextFontEngine::glyphFormat depend on the primary
display's subpixel layout (if any). This change also refactors the
antialiasing threshold setting to live beside the defaultGlyphFormat.
Change-Id: I27f94f775d91d2a68cd647cc24503b31b6ff5e61
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h')
-rw-r--r-- | src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h b/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h index d32f05022e..02c8d926fd 100644 --- a/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h +++ b/src/platformsupport/fontdatabases/mac/qfontengine_coretext_p.h @@ -100,6 +100,9 @@ public: virtual QFontEngine *cloneWithSize(qreal pixelSize) const; virtual int glyphMargin(QFontEngineGlyphCache::Type type) { return 0; } + static int antialiasingThreshold; + static QFontEngineGlyphCache::Type defaultGlyphFormat; + private: friend class QRawFontPrivate; |