diff src/uncommitteditem.cpp @ 682:751b21af6b6f

Work around font mis-hinting when scaled on Windows
author Chris Cannam
date Fri, 07 Dec 2018 14:29:23 +0000
parents ae67ea0af696
children 6bfca8973f79
line wrap: on
line diff
--- a/src/uncommitteditem.cpp	Fri Dec 07 13:43:08 2018 +0000
+++ b/src/uncommitteditem.cpp	Fri Dec 07 14:29:23 2018 +0000
@@ -130,6 +130,9 @@
 	int ps = int((f.pixelSize() / scale) + 0.5);
 	if (ps < 8) ps = 8;
 	f.setPixelSize(ps);
+#ifdef Q_OS_WIN32
+        f.setHintingPreference(QFont::PreferVerticalHinting);
+#endif
     }
 
     if (scale < 0.1) {
@@ -197,6 +200,9 @@
 	int ps = int((f.pixelSize() / scale) + 0.5);
 	if (ps < 8) ps = 8;
 	f.setPixelSize(ps);
+#ifdef Q_OS_WIN32
+        f.setHintingPreference(QFont::PreferVerticalHinting);
+#endif
     }
 
     if (scale < 0.1) {