Title: [147544] trunk/Source/WebCore
Revision
147544
Author
[email protected]
Date
2013-04-03 05:35:36 -0700 (Wed, 03 Apr 2013)

Log Message

[Qt] Monospace font does not render in proper sizes
https://bugs.webkit.org/show_bug.cgi?id=93263

Reviewed by Jocelyn Turcotte.

Remove this patch's artificial dependency on Qt 5.1.

* platform/graphics/qt/FontPlatformDataQt.cpp:
(WebCore::FontPlatformData::FontPlatformData):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (147543 => 147544)


--- trunk/Source/WebCore/ChangeLog	2013-04-03 12:33:41 UTC (rev 147543)
+++ trunk/Source/WebCore/ChangeLog	2013-04-03 12:35:36 UTC (rev 147544)
@@ -1,3 +1,15 @@
+2013-04-03  Allan Sandfeld Jensen  <[email protected]>
+
+        [Qt] Monospace font does not render in proper sizes
+        https://bugs.webkit.org/show_bug.cgi?id=93263
+
+        Reviewed by Jocelyn Turcotte.
+
+        Remove this patch's artificial dependency on Qt 5.1.
+
+        * platform/graphics/qt/FontPlatformDataQt.cpp:
+        (WebCore::FontPlatformData::FontPlatformData):
+
 2013-04-03  Takeshi Yoshino  <[email protected]>
 
         Refine LOG messages in WebSocket related components

Modified: trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp (147543 => 147544)


--- trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp	2013-04-03 12:33:41 UTC (rev 147543)
+++ trunk/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp	2013-04-03 12:35:36 UTC (rev 147544)
@@ -73,10 +73,7 @@
     font.setWeight(toQFontWeight(description.weight()));
     font.setWordSpacing(wordSpacing);
     font.setLetterSpacing(QFont::AbsoluteSpacing, letterSpacing);
-#if QT_VERSION < QT_VERSION_CHECK(5, 1, 0)
-    // To maintain stable baselines for Qt 5.0, keep force integer metrics enabled and ignore font-smoothing setting.
-    font.setStyleStrategy(QFont::ForceIntegerMetrics);
-#else
+#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
     if (description.fontSmoothing() == NoSmoothing
         || (description.fontSmoothing() == AutoSmoothing && !Font::shouldUseSmoothing()))
         font.setStyleStrategy(QFont::NoAntialias);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to