From 8f1190bf567cd49fae8ae462a66482343b285f90 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 11 Sep 2017 15:06:47 -0700 Subject: [PATCH] Enable the Skia subpixel text flag in libtxt (flutter/engine#4086) This flag was set in the Blink renderer (see FontPlatformData::setupPaint) --- 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 c8e0896c93..59c2da2c1d 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph.cc +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph.cc @@ -211,6 +211,7 @@ void Paragraph::Layout(double width, bool force) { SkPaint paint; paint.setAntiAlias(true); paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); + paint.setSubpixelText(true); minikin::FontStyle font; minikin::MinikinPaint minikin_paint;