Disable GDI slight hinting.
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 27 Jul 2013 21:42:21 +0000 (21:42 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sat, 27 Jul 2013 21:42:21 +0000 (21:42 +0000)
FontHostTest fails because 'Times New Roman' 'o' and 'g' have
a different number of points in their hinted and un-hinted versions.
Disable slight hinting until this is understood.

git-svn-id: http://skia.googlecode.com/svn/trunk@10400 2bbb7eff-a529-9590-31e7-b0007b416f81

src/ports/SkFontHost_win.cpp

index 98bd3243b4d5f73aac549c1ed9826390ade3bf0f..3fb0b57dae22108a104b7b98a8ff50dc0cc2e8d4 100755 (executable)
@@ -2117,9 +2117,10 @@ void LogFontTypeface::onFilterRec(SkScalerContextRec* rec) const {
             break;
         case SkPaint::kSlight_Hinting:
             // Only do slight hinting when axis aligned.
-            if (!isAxisAligned(*rec)) {
+            // TODO: re-enable slight hinting when FontHostTest can pass.
+            //if (!isAxisAligned(*rec)) {
                 h = SkPaint::kNo_Hinting;
-            }
+            //}
             break;
         case SkPaint::kNormal_Hinting:
         case SkPaint::kFull_Hinting: