未验证 提交 0c11836c 编写于 作者: J Jason Simmons 提交者: GitHub

Use anti-aliasing when drawing text in the performance overlay (#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
上级 b7f6bf01
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册