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

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

Issue 239283010: Fix subpixel font scaling for DirectWrite (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 94444fcb32d5a128de5acda48c3ecb236b8524dd..d9c09658cf3433067c52076813ae17951f267011 100644
--- a/Source/platform/fonts/win/FontPlatformDataWin.cpp
+++ b/Source/platform/fonts/win/FontPlatformDataWin.cpp
@@ -56,7 +56,8 @@ void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext* context) cons
flags &= ~textFlagsMask;
if (ts >= m_minSizeForAntiAlias) {
- paint->setSubpixelText(m_useSubpixelPositioning);
+ if (m_useSubpixelPositioning)
+ flags |= SkPaint::kSubpixelText_Flag;
// Only set painting flags when we're actually painting.
if (context && !context->couldUseLCDRenderedText()) {
@@ -70,9 +71,6 @@ void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext* context) cons
}
SkASSERT(!(textFlags & ~textFlagsMask));
flags |= textFlags;
-
- } else {
- paint->setSubpixelText(false);
}
paint->setFlags(flags);
« 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