New issue
Advanced search Search tips

Issue 797724 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

-webkit-font-smoothing doesn't work on Windows

Project Member Reported by r...@igalia.com, Dec 27 2017

Issue description


Check the attached example on Windows, the 3 divs look the same
when they have different values for -webkit-font-smoothing property.
I'm attaching the output in Mac and Windows to see the differences.

Checking the code it seems font-smoothing is only used at FontPlatformDataMac.mm [1]
in FontPlatformData::SetupPaintFont().
However that's not used at all in FontPlatformDataWin.cpp [2].

For example it seems SkPaint::kLCDRenderText_Flag is never set on Windows.

[1] https://chromium.googlesource.com/chromium/src/+/6909405cadf0750df9f7a1e57747dbfd38b7982b/third_party/WebKit/Source/platform/fonts/mac/FontPlatformDataMac.mm#115
[2] https://chromium.googlesource.com/chromium/src/+/6909405cadf0750df9f7a1e57747dbfd38b7982b/third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp#47
 
font-smoothing.html
1.2 KB View Download
font-smoothing-mac.png
90.8 KB View Download
font-smoothing-windows.png
125 KB View Download

Comment 1 by r...@igalia.com, Dec 27 2017

BTW, I don't know if this could be related or not to issue #702592.

Comment 2 by drott@chromium.org, Jan 2 2018

Status: WontFix (was: Untriaged)
Hi Rego, thanks for the report. We don't plan to support this legacy, prefixed CSS on any other platforms. Not related to issue 702592 - 702592 can be improved by Skia reading certain ClearType contrast settings and applying them to DWrite drawing calls.

Sign in to add a comment