Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1105)

Unified Diff: third_party/WebKit/Source/platform/fonts/mac/FontPlatformDataMac.mm

Issue 1965193003: Set linear-text flag on by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/fonts/mac/FontPlatformDataMac.mm
diff --git a/third_party/WebKit/Source/platform/fonts/mac/FontPlatformDataMac.mm b/third_party/WebKit/Source/platform/fonts/mac/FontPlatformDataMac.mm
index bf1be45ced70d1b3be6a9c96a08291af0693e6c0..72e9dbcba1aa1b11364cd4d1f909efd505346c04 100644
--- a/third_party/WebKit/Source/platform/fonts/mac/FontPlatformDataMac.mm
+++ b/third_party/WebKit/Source/platform/fonts/mac/FontPlatformDataMac.mm
@@ -137,6 +137,7 @@ void FontPlatformData::setupPaint(SkPaint* paint, float, const Font* font) const
paint->setTextSkewX(m_syntheticItalic ? -SK_Scalar1 / 4 : 0);
paint->setLCDRenderText(shouldSmoothFonts);
paint->setSubpixelText(true);
+ paint->setLinearText(true);
// When rendering using CoreGraphics, disable hinting when webkit-font-smoothing:antialiased or
// text-rendering:geometricPrecision is used.

Powered by Google App Engine
This is Rietveld 408576698