Index: Source/core/platform/graphics/skia/FontCacheSkia.cpp |
diff --git a/Source/core/platform/graphics/skia/FontCacheSkia.cpp b/Source/core/platform/graphics/skia/FontCacheSkia.cpp |
index 34cdcc2caabc5b8c730078826adda3fee0827b65..926e8b267292387baf06e5194051cc10be4cc556 100644 |
--- a/Source/core/platform/graphics/skia/FontCacheSkia.cpp |
+++ b/Source/core/platform/graphics/skia/FontCacheSkia.cpp |
@@ -30,6 +30,7 @@ |
#include "config.h" |
+#include "RuntimeEnabledFeatures.h" |
#include "SkFontMgr.h" |
#include "SkTypeface.h" |
#include "platform/NotImplemented.h" |
@@ -167,7 +168,9 @@ FontPlatformData* FontCache::createFontPlatformData(const FontDescription& fontD |
FontPlatformData* result = new FontPlatformData(tf, |
name.data(), |
- fontDescription.computedSize(), |
+ (RuntimeEnabledFeatures::subpixelFontScalingEnabled()) |
+ ? fontDescription.computedSize() |
+ : fontDescription.computedPixelSize(), |
fontDescription.weight() >= FontWeightBold && !tf->isBold(), |
fontDescription.italic() && !tf->isItalic(), |
fontDescription.orientation()); |