Index: src/ports/SkTypeface_win_dw.cpp |
diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp |
index 78e3cac558fe40e7c58bd57781733eb26e4879e7..a12438c88f14cf6f28d50fd02e1c828dfcb948c4 100644 |
--- a/src/ports/SkTypeface_win_dw.cpp |
+++ b/src/ports/SkTypeface_win_dw.cpp |
@@ -252,7 +252,6 @@ |
void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const { |
if (rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) { |
rec->fMaskFormat = SkMask::kA8_Format; |
- rec->fFlags |= SkScalerContext::kGenA8FromLCD_Flag; |
} |
unsigned flagsWeDontSupport = SkScalerContext::kVertical_Flag | |
@@ -263,10 +262,8 @@ |
rec->fFlags &= ~flagsWeDontSupport; |
SkPaint::Hinting h = rec->getHinting(); |
- // DirectWrite2 allows for hinting to be turned off. Force everything else to normal. |
- if (h != SkPaint::kNo_Hinting || !fFactory2 || !fDWriteFontFace2) { |
- h = SkPaint::kNormal_Hinting; |
- } |
+ // DirectWrite does not provide for hinting hints. |
+ h = SkPaint::kSlight_Hinting; |
rec->setHinting(h); |
#if defined(SK_FONT_HOST_USE_SYSTEM_SETTINGS) |