Index: src/ports/SkFontHost_win_dw.cpp |
=================================================================== |
--- src/ports/SkFontHost_win_dw.cpp (revision 9015) |
+++ src/ports/SkFontHost_win_dw.cpp (working copy) |
@@ -1258,6 +1258,12 @@ |
} |
void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const { |
+ if (rec->fFlags & SkScalerContext::kLCD_BGROrder_Flag || |
+ rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) |
+ { |
+ rec->fMaskFormat = SkMask::kA8_Format; |
+ } |
+ |
unsigned flagsWeDontSupport = SkScalerContext::kDevKernText_Flag | |
SkScalerContext::kAutohinting_Flag | |
SkScalerContext::kEmbeddedBitmapText_Flag | |