Remove call to SkFont::setLinearMetrics (flutter/engine#8612)
This particular call doesn't do anything since the default is false anyway. In addition Skia is looking to remove this flag since setting it to true is now synonymous with setting the hinting to none.
This commit is contained in:
@@ -22,7 +22,6 @@ void DrawStatisticsText(SkCanvas& canvas,
|
||||
font = SkFont(SkTypeface::MakeFromFile(font_path.c_str()));
|
||||
}
|
||||
font.setSize(15);
|
||||
font.setLinearMetrics(false);
|
||||
SkPaint paint;
|
||||
paint.setColor(SK_ColorGRAY);
|
||||
canvas.drawSimpleText(string.c_str(), string.size(), kUTF8_SkTextEncoding, x,
|
||||
|
||||
Reference in New Issue
Block a user