OSDN Git Service

explictly specify hinting (new api)
authorMike Reed <reed@google.com>
Fri, 24 Jul 2009 19:57:12 +0000 (15:57 -0400)
committerMike Reed <reed@google.com>
Fri, 24 Jul 2009 19:57:12 +0000 (15:57 -0400)
WebCore/platform/graphics/android/FontPlatformDataAndroid.cpp

index 4496408..3fcf3fe 100644 (file)
@@ -147,6 +147,7 @@ void FontPlatformData::setupPaint(SkPaint* paint) const
 
     paint->setAntiAlias(true);
     paint->setSubpixelText(true);
+    paint->setHinting(SkPaint::kSlight_Hinting);
     paint->setTextSize(SkFloatToScalar(ts));
     paint->setTypeface(mTypeface);
     paint->setFakeBoldText(mFakeBold);