Index: Source/core/platform/graphics/win/FontPlatformDataWin.cpp |
diff --git a/Source/core/platform/graphics/win/FontPlatformDataWin.cpp b/Source/core/platform/graphics/win/FontPlatformDataWin.cpp |
index 6bf3d6456404b1fecfda3276993cb90d29923b44..f33a454e8a36695f3c9acf72659aeafc9d58cefb 100644 |
--- a/Source/core/platform/graphics/win/FontPlatformDataWin.cpp |
+++ b/Source/core/platform/graphics/win/FontPlatformDataWin.cpp |
@@ -58,7 +58,10 @@ void FontPlatformData::setupPaint(SkPaint* paint, GraphicsContext* context) cons |
paint->setTypeface(typeface()); |
paint->setFakeBoldText(m_fakeBold); |
paint->setTextSkewX(m_fakeItalic ? -SK_Scalar1 / 4 : 0); |
- if (RuntimeEnabledFeatures::subpixelFontScalingEnabled()) |
+ |
+ // Subpixel text positioning is not supported by the GDI backend. |
+ if (RuntimeEnabledFeatures::directWriteEnabled() |
+ && RuntimeEnabledFeatures::subpixelFontScalingEnabled()) |
paint->setSubpixelText(true); |
int textFlags = paintTextFlags(); |