From 731f2a179b2056509582ac66641cdd3c846ac9dc Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Tue, 2 Apr 2013 05:37:13 +0300 Subject: [PATCH] QTextCharFormat::setFont(): Preserve the font hinting preference Task-number: QTBUG-22653 Change-Id: I9153486ff7793ba4427b64459896ab1328d51548 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/text/qtextformat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp index 4decb3d248..4f8a25c5a8 100644 --- a/src/gui/text/qtextformat.cpp +++ b/src/gui/text/qtextformat.cpp @@ -1898,6 +1898,7 @@ void QTextCharFormat::setFont(const QFont &font) setFontStretch(font.stretch()); setFontStyleHint(font.styleHint()); setFontStyleStrategy(font.styleStrategy()); + setFontHintingPreference(font.hintingPreference()); setFontKerning(font.kerning()); }