diff options
author | Behdad Esfahbod <behdad@google.com> | 2014-08-20 21:17:15 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-16 04:24:10 +0000 |
commit | 6e623cf3ee32a90859a36cf06364af320c54f793 (patch) | |
tree | 17047f0de7a7f0b2a8a358a056b2c6147507bb36 | |
parent | 11bda2c5a518b90302331a5ffe647b4d30d8093e (diff) | |
parent | a05f3d6ae5f6e95d881d698282601e01bbc84036 (diff) | |
download | skia-6e623cf3ee32a90859a36cf06364af320c54f793.tar.gz |
Merge "Use medium filtering when downscaling bitmap glyphs in FreeType host" into lmp-dev
-rw-r--r-- | src/ports/SkFontHost_FreeType_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_FreeType_common.cpp b/src/ports/SkFontHost_FreeType_common.cpp index b27ae96fff..b53f9e3bf8 100644 --- a/src/ports/SkFontHost_FreeType_common.cpp +++ b/src/ports/SkFontHost_FreeType_common.cpp @@ -463,7 +463,7 @@ void SkScalerContext_FreeType_Base::generateGlyphImage(FT_Face face, const SkGly canvas.scale(SkIntToScalar(glyph.fWidth) / SkIntToScalar(face->glyph->bitmap.width), SkIntToScalar(glyph.fHeight) / SkIntToScalar(face->glyph->bitmap.rows)); SkPaint paint; - paint.setFilterLevel(SkPaint::kLow_FilterLevel); + paint.setFilterLevel(SkPaint::kMedium_FilterLevel); canvas.drawBitmap(unscaledBitmap, 0, 0, &paint); // If the destination is BW or LCD, convert from A8. |