From 68468f7802c53173c0db4282381de32e4fc463bf Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 21 Dec 2021 11:04:12 +0200 Subject: [PATCH] set glyph cache type to QFontEngineGlyphCache::Raster_A8 only if the surface is not in mono format git blame has nothing (stealth changes done upstream, not the first): https://github.com/qt/qtbase/blame/30fd22b9574def54726e7b193127cc0c901c1b4c/src/gui/painting/qpaintengine_raster.cpp Signed-off-by: Ivailo Monev --- src/gui/painting/qpaintengine_raster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index 805d2996b..5673e089c 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -296,9 +296,9 @@ bool QRasterPaintEngine::begin(QPaintDevice *device) } #endif + d->glyphCacheType = QFontEngineGlyphCache::Raster_A8; if (d->mono_surface) d->glyphCacheType = QFontEngineGlyphCache::Raster_Mono; - d->glyphCacheType = QFontEngineGlyphCache::Raster_A8; setActive(true); return true;