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

Unified Diff: Source/platform/fonts/win/FontPlatformDataWin.cpp

Issue 544843004: [DirectWrite] Disable subpixel font positioning for old fonts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: w/TestExpectations Created 6 years, 3 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
« no previous file with comments | « Source/platform/fonts/win/FontCacheSkiaWin.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/win/FontPlatformDataWin.cpp
diff --git a/Source/platform/fonts/win/FontPlatformDataWin.cpp b/Source/platform/fonts/win/FontPlatformDataWin.cpp
index b0037c44e7d700e744a040cdad3ca276a71adbfb..398088717b3f0b834be87889025c04bfca422e70 100644
--- a/Source/platform/fonts/win/FontPlatformDataWin.cpp
+++ b/Source/platform/fonts/win/FontPlatformDataWin.cpp
@@ -69,7 +69,7 @@ void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext* context) cons
// run without font smoothing we enable it for tests to ensure we get
// good test coverage matching the more common smoothing enabled
// behavior.
- if (m_useSubpixelPositioning
+ if (m_useSubpixelPositioning && ts >= m_minSizeForSubpixel
&& ((textFlags & SkPaint::kAntiAlias_Flag) || LayoutTestSupport::isRunningLayoutTest()))
flags |= SkPaint::kSubpixelText_Flag;
« no previous file with comments | « Source/platform/fonts/win/FontCacheSkiaWin.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698