CoreText: Respect QFont::NoSubpixelAntialias when deciding glyph format

Change-Id: I846758bce2fd7536f9941b11f23fc0e5d5bc6f1b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
bb10
Tor Arne Vestbø 2018-11-30 12:03:58 +01:00
parent dae2e6be93
commit 64037f18d3
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ void QCoreTextFontEngine::init()
if (traits & kCTFontColorGlyphsTrait)
glyphFormat = QFontEngine::Format_ARGB;
else if (fontSmoothing() == FontSmoothing::Subpixel)
else if (shouldSmoothFont() && fontSmoothing() == FontSmoothing::Subpixel)
glyphFormat = QFontEngine::Format_A32;
else
glyphFormat = QFontEngine::Format_A8;