提交 f4d23ef6 编写于 作者: B bungeman 提交者: Chris Bracken

Replace Skia font macros with enums. (#8920)

This mechanically replaces kXXX_SkTextEncoding with SkTextEncoding::kXXX
and kXXX_SkFontHinting with SkFontHinting::kXXX. This will allow Skia to
remove these old macro constants and get everyone on the new enums.
上级 839628b1
......@@ -24,7 +24,7 @@ void DrawStatisticsText(SkCanvas& canvas,
font.setSize(15);
SkPaint paint;
paint.setColor(SK_ColorGRAY);
canvas.drawSimpleText(string.c_str(), string.size(), kUTF8_SkTextEncoding, x,
canvas.drawSimpleText(string.c_str(), string.size(), SkTextEncoding::kUTF8, x,
y, font, paint);
}
......
......@@ -497,7 +497,7 @@ void Paragraph::Layout(double width, bool force) {
SkFont font;
font.setEdging(SkFont::Edging::kAntiAlias);
font.setSubpixel(true);
font.setHinting(kSlight_SkFontHinting);
font.setHinting(SkFontHinting::kSlight);
records_.clear();
line_heights_.clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册