[Webkit-unassigned] [Bug 206573] [WinCairo] -webkit-font-smoothing:antialiased makes fonts blurry

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 24 01:08:20 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=206573

--- Comment #7 from Fujii Hironori <Hironori.Fujii at sony.com> ---
-webkit-font-smoothing:antialiased is mapped to CAIRO_ANTIALIAS_GRAY.
And CAIRO_ANTIALIAS_GRAY is mapped to ANTIALIASED_QUALITY.

If I changed to use DEFAULT_QUALITY instead of
ANTIALIASED_QUALITY by applying the following patch to Cairo, the
font looked good.

diff --git a/src/win32/cairo-win32-font.c b/src/win32/cairo-win32-font.c
index 1f217573b..355192dc0 100644
--- a/src/win32/cairo-win32-font.c
+++ b/src/win32/cairo-win32-font.c
@@ -347,7 +347,7 @@ _win32_scaled_font_create (LOGFONTW                   *logfont,
        case CAIRO_ANTIALIAS_GRAY:
        case CAIRO_ANTIALIAS_FAST:
        case CAIRO_ANTIALIAS_GOOD:
-           f->quality = ANTIALIASED_QUALITY;
+           f->quality = DEFAULT_QUALITY;
            break;
        case CAIRO_ANTIALIAS_SUBPIXEL:
        case CAIRO_ANTIALIAS_BEST:

This issue seems a Windows API issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200624/74547eb1/attachment.htm>


More information about the webkit-unassigned mailing list