[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] plugins/textshape/dialogs: Turn off font hinting for the
From: Geoffry Song <goffrie () gmail ! com>
Date: 2011-12-11 6:00:41
Message-ID: 20111211060041.A53C1A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit a1ab3f359d5cd9221b6ebc53733d1453637984da by Geoffry Song.
Committed on 11/12/2011 at 06:59.
Pushed by geoffrysong into branch 'master'.
Turn off font hinting for the font preview boxes
Similarly to 46c70a24f637667ea818918859ab2f0a87ad0fb2, fix the ugly
fonts with hinting turned on.
M +3 -0 plugins/textshape/dialogs/FormattingPreview.cpp
http://commits.kde.org/calligra/a1ab3f359d5cd9221b6ebc53733d1453637984da
diff --git a/plugins/textshape/dialogs/FormattingPreview.cpp \
b/plugins/textshape/dialogs/FormattingPreview.cpp index fe350e4..6103699 100644
--- a/plugins/textshape/dialogs/FormattingPreview.cpp
+++ b/plugins/textshape/dialogs/FormattingPreview.cpp
@@ -223,6 +223,9 @@ void FormattingPreview::paintEvent(QPaintEvent *event)
//set up the Font properties
QFont displayFont = QFont(m_font, paintDevice);
displayFont.setCapitalization(m_fontCapitalisation);
+#if QT_VERSION >= 0x040800
+ displayFont.setHintingPreference(QFont::PreferNoHinting);
+#endif
painter.setPen(m_textColor);
painter.setFont(displayFont);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic