From 2cc1104dd07bf927cca32cc0fda0564c52b70bbd Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 10 Jan 2019 15:28:48 -0800 Subject: [PATCH] Use anti-aliasing when drawing text in the performance overlay (flutter/engine#7445) The engine dropped the ability to draw non anti-aliased text in https://fuchsia.googlesource.com/third_party/freetype2/+/a10b062df0c8958d69377aa04ea6554a9961a111 Fixes https://github.com/flutter/flutter/issues/26387 --- engine/src/flutter/flow/layers/performance_overlay_layer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/flow/layers/performance_overlay_layer.cc b/engine/src/flutter/flow/layers/performance_overlay_layer.cc index 1ec2eeaa3b9..210812576a1 100644 --- a/engine/src/flutter/flow/layers/performance_overlay_layer.cc +++ b/engine/src/flutter/flow/layers/performance_overlay_layer.cc @@ -19,6 +19,7 @@ void DrawStatisticsText(SkCanvas& canvas, paint.setTextSize(15); paint.setLinearText(false); paint.setColor(SK_ColorGRAY); + paint.setAntiAlias(true); canvas.drawText(string.c_str(), string.size(), x, y, paint); }