remove scale parameter from getFontMetrics
Bug: skia: Change-Id: Ice824ca3fc5e4fceecd9966b8fcf9b33ba83160f Reviewed-on: https://skia-review.googlesource.com/c/167546 Reviewed-by: Mike Reed <reed@google.com>
This commit is contained in:
parent
81f11c92c4
commit
26fcd7166c
@ -3522,11 +3522,6 @@ void draw(SkCanvas* canvas) {
|
||||
SkScalar lineHeight = paint.getFontMetrics(nullptr);
|
||||
canvas->drawString("line 1", 10, 40, paint);
|
||||
canvas->drawString("line 2", 10, 40 + lineHeight, paint);
|
||||
paint.setStyle(SkPaint::kStroke_Style);
|
||||
paint.setStrokeWidth(10);
|
||||
lineHeight = paint.getFontMetrics(nullptr, 1.10f); // account for stroke height
|
||||
canvas->drawString("line 3", 120, 40, paint);
|
||||
canvas->drawString("line 4", 120, 40 + lineHeight, paint);
|
||||
}
|
||||
##
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user