diff options
author | 2014-08-21 07:33:20 -0700 | |
---|---|---|
committer | 2014-08-21 07:33:20 -0700 | |
commit | ef24b7d33826f9e71f01870b3bad9d52f2a8d220 (patch) | |
tree | 6c9826f28be00bbe395a3f7f663a7a9f7bf99e69 /src | |
parent | 01a492f959e886f89995c6d1bbcd9f7bb7639726 (diff) |
Use medium filtering when downscaling bitmap glyphs in FreeType host
This enable Android to save space on emoji glyphs
R=bungeman@google.com, raph@google.com
Author: djsollen@google.com
Review URL: https://codereview.chromium.org/492253002
Diffstat (limited to 'src')
-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. |