Title: [167082] trunk/Source/WebCore
Revision
167082
Author
mmaxfi...@apple.com
Date
2014-04-10 12:16:54 -0700 (Thu, 10 Apr 2014)

Log Message

Remove "System Font" from character width calculations
https://bugs.webkit.org/show_bug.cgi?id=131411

Reviewed by Tim Horton.

Covered by existing tests

* platform/graphics/Font.cpp:
(WebCore::Font::hasValidAverageCharWidth):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (167081 => 167082)


--- trunk/Source/WebCore/ChangeLog	2014-04-10 19:10:58 UTC (rev 167081)
+++ trunk/Source/WebCore/ChangeLog	2014-04-10 19:16:54 UTC (rev 167082)
@@ -1,3 +1,15 @@
+2014-04-10  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+        Remove "System Font" from character width calculations
+        https://bugs.webkit.org/show_bug.cgi?id=131411
+
+        Reviewed by Tim Horton.
+
+        Covered by existing tests
+
+        * platform/graphics/Font.cpp:
+        (WebCore::Font::hasValidAverageCharWidth):
+
 2014-04-10  Bem Jones-Bey  <bjone...@adobe.com>
 
         Invalid cast in WebCore::RenderLayer::setupClipPath

Modified: trunk/Source/WebCore/platform/graphics/Font.cpp (167081 => 167082)


--- trunk/Source/WebCore/platform/graphics/Font.cpp	2014-04-10 19:10:58 UTC (rev 167081)
+++ trunk/Source/WebCore/platform/graphics/Font.cpp	2014-04-10 19:16:54 UTC (rev 167082)
@@ -484,7 +484,7 @@
     // Internal fonts on OS X also have an invalid entry in the table for avgCharWidth.
     // They are hidden by having a name that begins with a period, so simply search
     // for that here rather than try to keep the list up to date.
-    if (family.startsWith('.') || family == "System Font")
+    if (family.startsWith('.'))
         return false;
 
     static HashSet<AtomicString>* fontFamiliesWithInvalidCharWidthMap = 0;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to