Skip to content

Commit 0c11836

Browse files
Use anti-aliasing when drawing text in the performance overlay (flutter#7445)
The engine dropped the ability to draw non anti-aliased text in https://fuchsia.googlesource.com/third_party/freetype2/+/a10b062df0c8958d69377aa04ea6554a9961a111 Fixes flutter#26387
1 parent b7f6bf0 commit 0c11836

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flow/layers/performance_overlay_layer.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ void DrawStatisticsText(SkCanvas& canvas,
1919
paint.setTextSize(15);
2020
paint.setLinearText(false);
2121
paint.setColor(SK_ColorGRAY);
22+
paint.setAntiAlias(true);
2223
canvas.drawText(string.c_str(), string.size(), x, y, paint);
2324
}
2425

0 commit comments

Comments
 (0)