[Qt] Use same DPI for application font as rest of app in DRT and WTR
authorvestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 17:40:35 +0000 (17:40 +0000)
committervestbo@webkit.org <vestbo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Sep 2011 17:40:35 +0000 (17:40 +0000)
commit45d3c27f1d12e935f8d507f75fa76d5b7b00e95b
tree76798fea63ce0803bc1857978324f5b55f86b82b
parent199ac39b26520a7b8240ce5db81ce26004595b6e
[Qt] Use same DPI for application font as rest of app in DRT and WTR

QApplication will initialize the default application font based
on the application DPI at construction time, but we then override
the application DPI using QX11Info (hard-coding it to 96 for
consistency). This hard-coding is not reflected in the application
font, so we explicitly have update the font ourselves.

The 6 test results that are updated were originally produced with
a DPI of 75, as this is the default fallback DPI when a QFont is
constructed before QApplication. This was wrong, and the results
are updated to match a DPI of 96.

Reviewed by Csaba Osztrogon√°c.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/qt-4.8/css1/text_properties/letter_spacing-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt-4.8/css1/text_properties/letter_spacing-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt-4.8/fast/css/word-space-extra-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt-4.8/fast/css/word-space-extra-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt-4.8/svg/batik/text/textPosition-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt-4.8/svg/batik/text/textPosition-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt-4.8/svg/batik/text/textPosition2-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt-4.8/svg/batik/text/textPosition2-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt/css1/text_properties/letter_spacing-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt/fast/css/word-space-extra-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt/fast/css/word-space-extra-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt/fast/inline/absolute-positioned-inline-in-centred-block-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt/fast/inline/absolute-positioned-inline-in-centred-block-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt/fast/text/text-letter-spacing-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt/fast/text/text-letter-spacing-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt/svg/batik/text/textPosition-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt/svg/batik/text/textPosition-expected.txt [changed mode: 0644->0755]
LayoutTests/platform/qt/svg/batik/text/textPosition2-expected.png [changed mode: 0644->0755]
LayoutTests/platform/qt/svg/batik/text/textPosition2-expected.txt [changed mode: 0644->0755]
Tools/ChangeLog
Tools/DumpRenderTree/qt/main.cpp
Tools/WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp