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