From 752753e2caf24f28dac51731ee1f1443cf511410 Mon Sep 17 00:00:00 2001 From: Billy Hewlett Date: Thu, 17 May 2012 14:17:05 -0700 Subject: Turn off autohinting at HDPI Bug: 6478362 Change-Id: I9734658a509010035eb3081be8affb609863d46c --- Source/WebCore/platform/graphics/android/fonts/FontAndroid.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source') diff --git a/Source/WebCore/platform/graphics/android/fonts/FontAndroid.cpp b/Source/WebCore/platform/graphics/android/fonts/FontAndroid.cpp index 827a531..0b93594 100644 --- a/Source/WebCore/platform/graphics/android/fonts/FontAndroid.cpp +++ b/Source/WebCore/platform/graphics/android/fonts/FontAndroid.cpp @@ -96,6 +96,10 @@ static bool setupForText(SkPaint* paint, GraphicsContext* gc, float shadowBlur; Color shadowColor; ColorSpace shadowColorSpace; + + if (RenderSkinAndroid::DrawableResolution() >= RenderSkinAndroid::HighRes) + paint->setAutohinted(false); + bool hasShadow = gc->getShadow(shadowOffset, shadowBlur, shadowColor, shadowColorSpace); bool hasBothStrokeAndFill = (mode & (TextModeStroke | TextModeFill)) == (TextModeStroke | TextModeFill); -- cgit v1.1