[WinCairo] ClearType should be enabled on Cairo port
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Jul 2015 18:40:34 +0000 (18:40 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 9 Jul 2015 18:40:34 +0000 (18:40 +0000)
https://bugs.webkit.org/show_bug.cgi?id=145492

Patch by Karlen Simonyan <szkarlen@gmail.com> on 2015-07-09
Reviewed by Brent Fulgham.

* platform/graphics/win/FontPlatformDataCairoWin.cpp:
(WebCore::FontPlatformData::FontPlatformData):
Use CAIRO_ANTIALIAS_BEST instead of CAIRO_ANTIALIAS_GRAY.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186599 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp

index 312b105..81e964f 100644 (file)
@@ -1,3 +1,14 @@
+2015-07-09  Karlen Simonyan  <szkarlen@gmail.com>
+
+        [WinCairo] ClearType should be enabled on Cairo port
+        https://bugs.webkit.org/show_bug.cgi?id=145492
+
+        Reviewed by Brent Fulgham.
+
+        * platform/graphics/win/FontPlatformDataCairoWin.cpp:
+        (WebCore::FontPlatformData::FontPlatformData):
+        Use CAIRO_ANTIALIAS_BEST instead of CAIRO_ANTIALIAS_GRAY.
+
 2015-07-02  Chris Fleizach  <cfleizach@apple.com>
 
         AX: <details> element should allow expand/close through AX API
index aaa7aa6..3eb2c4b 100644 (file)
@@ -77,7 +77,7 @@ FontPlatformData::FontPlatformData(GDIObject<HFONT> font, cairo_font_face_t* fon
    // We force antialiasing and disable hinting to provide consistent
    // typographic qualities for custom fonts on all platforms.
    cairo_font_options_set_hint_style(options, CAIRO_HINT_STYLE_NONE);
-   cairo_font_options_set_antialias(options, CAIRO_ANTIALIAS_GRAY);
+   cairo_font_options_set_antialias(options, CAIRO_ANTIALIAS_BEST);
 
     if (syntheticOblique()) {
         static const float syntheticObliqueSkew = -tanf(14 * acosf(0) / 90);