summaryrefslogtreecommitdiff
path: root/src/rekonqpage
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-06-06 19:34:38 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-06-06 19:36:00 +0200
commit894b79f5ffd816962fe38207d40bf05274490498 (patch)
tree8dd839b36abe49688f5e8b89c8a61921989607f4 /src/rekonqpage
parentRemember to save zoom settings on change (diff)
downloadrekonq-894b79f5ffd816962fe38207d40bf05274490498.tar.xz
Use webkit general font to render rekonq pages
BUG: 320318
Diffstat (limited to 'src/rekonqpage')
-rw-r--r--src/rekonqpage/newtabpage.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp
index 48b567de..7857b7d9 100644
--- a/src/rekonqpage/newtabpage.cpp
+++ b/src/rekonqpage/newtabpage.cpp
@@ -2,7 +2,7 @@
*
* This file is a part of the rekonq project
*
-* Copyright (C) 2009-2012 by Andrea Diamantini <adjam7 at gmail dot com>
+* Copyright (C) 2009-2013 by Andrea Diamantini <adjam7 at gmail dot com>
* Copyright (C) 2010 by Matthieu Gicquel <matgic78 at gmail dot com>
*
*
@@ -86,6 +86,7 @@ NewTabPage::NewTabPage(QWebFrame *frame)
{
m_html = file.readAll();
m_html.replace(QL1S("$DEFAULT_PATH"), dataPath);
+ m_html.replace(QL1S("$GENERAL_FONT"), QWebSettings::globalSettings()->fontFamily(QWebSettings::StandardFont));
}
}
@@ -1024,7 +1025,8 @@ void NewTabPage::initJS()
dataPath.remove(QL1S("/htmls/home.html"));
includes.replace(QL1S("$DEFAULT_PATH"), dataPath);
-
+ includes.replace(QL1S("$GENERAL_FONT"), QWebSettings::globalSettings()->fontFamily(QWebSettings::StandardFont));
+
oldHTML.replace(QL1S("<head>"), includes);
QString javascript;