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); |