From 80bb47d27f70b9a2fa9a1486563d63bf824af6c2 Mon Sep 17 00:00:00 2001
From: Teo Mrnjavac <teo@kde.org>
Date: Thu, 24 Mar 2016 16:58:13 +0100
Subject: [PATCH] Make fonts prettier on QtWebKit.

---
 src/modules/webview/WebViewStep.cpp | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/modules/webview/WebViewStep.cpp b/src/modules/webview/WebViewStep.cpp
index b5625b8fa2..b1d50bf7ca 100644
--- a/src/modules/webview/WebViewStep.cpp
+++ b/src/modules/webview/WebViewStep.cpp
@@ -34,6 +34,16 @@ WebViewStep::WebViewStep( QObject* parent )
 {
     emit nextStatusChanged( true );
     m_view = new C_QWEBVIEW();
+#ifdef WEBVIEW_WITH_WEBKIT
+    m_view->settings()->setFontFamily( QWebSettings::StandardFont,
+                                       m_view->settings()->
+                                       fontFamily( QWebSettings::SansSerifFont ) );
+    m_view->setRenderHints( QPainter::Antialiasing |
+                            QPainter::TextAntialiasing |
+                            QPainter::HighQualityAntialiasing |
+                            QPainter::SmoothPixmapTransform |
+                            QPainter::NonCosmeticDefaultPen );
+#endif
 }
 
 
-- 
GitLab