summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Messages.sh3
-rw-r--r--src/application.cpp7
-rw-r--r--src/rekonq.kcfg4
3 files changed, 11 insertions, 3 deletions
diff --git a/src/Messages.sh b/src/Messages.sh
index efa6adff..86f846c8 100644
--- a/src/Messages.sh
+++ b/src/Messages.sh
@@ -1,2 +1,5 @@
#! /bin/sh
+$EXTRACTRC *.ui */*ui >> rc.cpp || exit 1
$XGETTEXT *.cpp */*.cpp -o $podir/rekonq.pot
+rm -f rc.cpp
+
diff --git a/src/application.cpp b/src/application.cpp
index fb52dc51..9620feb8 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -447,8 +447,13 @@ void Application::updateConfiguration()
int defaultFontSize = ReKonfig::defaultFontSize();
int minimumFontSize = ReKonfig::minFontSize();
- float toPix = mainWindow()->currentTab()->view()->logicalDpiY()/72.0;
+ int logDpiY = mainWindow()->currentTab()->view()->logicalDpiY();
+ kDebug() << "Logical Dot per Inch Y: " << logDpiY;
+ float toPix = (logDpiY < 96.0)
+ ? 96.0/72.0
+ : logDpiY/72.0 ;
+
defaultSettings->setFontSize(QWebSettings::DefaultFontSize, qRound(defaultFontSize * toPix) );
defaultSettings->setFontSize(QWebSettings::MinimumFontSize, qRound(minimumFontSize * toPix) );
diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg
index b934c6d5..1d6139ac 100644
--- a/src/rekonq.kcfg
+++ b/src/rekonq.kcfg
@@ -120,10 +120,10 @@
<default code="true">QWebSettings::globalSettings()->fontFamily(QWebSettings::FantasyFont)</default>
</entry>
<entry name="defaultFontSize" type="Int">
- <default>16</default>
+ <default>12</default>
</entry>
<entry name="minFontSize" type="Int">
- <default>8</default>
+ <default>7</default>
</entry>
</group>