diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 02:52:59 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-23 02:52:59 +0100 |
commit | 27c78fdaae6e4deaf178da81a9c18806ed571327 (patch) | |
tree | 032672ea023a1dda58cbb9b6fcd0a8b22a018543 | |
parent | Save memory. (diff) | |
download | rekonq-27c78fdaae6e4deaf178da81a9c18806ed571327.tar.xz |
Removed dpi option.
Doesn't work well with fixed font sites
-rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c7da7512..a6857153 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -502,15 +502,15 @@ void MainWindow::updateConfiguration() int fnSize = ReKonfig::fontSize(); int minFnSize = ReKonfig::minFontSize(); - // font size / dpi WARNING: is this right? why we need this? - float toPix = m_view->logicalDpiY()/72.0; - if (toPix < 96.0/72.0) - toPix = 96.0/72.0; +// // font size / dpi WARNING: is this right? why we need this? +// float toPix = m_view->logicalDpiY()/72.0; +// if (toPix < 96.0/72.0) +// toPix = 96.0/72.0; QFont standardFont = ReKonfig::standardFont(); defaultSettings->setFontFamily(QWebSettings::StandardFont, standardFont.family()); - defaultSettings->setFontSize(QWebSettings::DefaultFontSize, fnSize*toPix); - defaultSettings->setFontSize(QWebSettings::MinimumFontSize, minFnSize*toPix); + defaultSettings->setFontSize(QWebSettings::DefaultFontSize, fnSize); + defaultSettings->setFontSize(QWebSettings::MinimumFontSize, minFnSize); QFont fixedFont = ReKonfig::fixedFont(); defaultSettings->setFontFamily(QWebSettings::FixedFont, fixedFont.family()); |