summaryrefslogtreecommitdiff
path: root/src/rekonqpage/newtabpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rekonqpage/newtabpage.cpp')
-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;