Skip to content

Commit

Permalink
remove scale parameter from getFontMetrics
Browse files Browse the repository at this point in the history
Bug: skia:
Change-Id: Ice824ca3fc5e4fceecd9966b8fcf9b33ba83160f
Reviewed-on: https://skia-review.googlesource.com/c/167546
Reviewed-by: Mike Reed <reed@google.com>
  • Loading branch information
reed-at-google committed Nov 2, 2018
1 parent 81f11c9 commit 26fcd71
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/SkPaint_Reference.bmh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
##

Expand Down

0 comments on commit 26fcd71

Please sign in to comment.