From 894b79f5ffd816962fe38207d40bf05274490498 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 6 Jun 2013 19:34:38 +0200 Subject: Use webkit general font to render rekonq pages BUG: 320318 --- src/rekonqpage/newtabpage.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/rekonqpage') 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 +* Copyright (C) 2009-2013 by Andrea Diamantini * Copyright (C) 2010 by Matthieu Gicquel * * @@ -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(""), includes); QString javascript; -- cgit v1.2.1