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
parent
dae2e6be93
commit
64037f18d3
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue