Request slight hinting when rendering glyphs with Skia (flutter/engine#4307)

Fixes https://github.com/flutter/flutter/issues/12820
This commit is contained in:
Jason Simmons
2017-11-01 11:47:09 -07:00
committed by GitHub
parent 89290a0c46
commit 5e13e93acd

View File

@@ -265,6 +265,7 @@ void Paragraph::Layout(double width, bool force) {
paint.setAntiAlias(true);
paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
paint.setSubpixelText(true);
paint.setHinting(SkPaint::kSlight_Hinting);
records_.clear();
line_heights_.clear();