From 5e13e93acdf667ac67dd2becb2ee0f27888ba03d Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 1 Nov 2017 11:47:09 -0700 Subject: [PATCH] Request slight hinting when rendering glyphs with Skia (flutter/engine#4307) Fixes https://github.com/flutter/flutter/issues/12820 --- engine/src/flutter/third_party/txt/src/txt/paragraph.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/third_party/txt/src/txt/paragraph.cc b/engine/src/flutter/third_party/txt/src/txt/paragraph.cc index 8a543c22f9..466b8c35c3 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph.cc +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph.cc @@ -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();