From 26fcd7166c74410862cce0f44d2a6bd484ed4cd3 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 1 Nov 2018 22:10:14 -0400 Subject: [PATCH] remove scale parameter from getFontMetrics Bug: skia: Change-Id: Ice824ca3fc5e4fceecd9966b8fcf9b33ba83160f Reviewed-on: https://skia-review.googlesource.com/c/167546 Reviewed-by: Mike Reed --- docs/SkPaint_Reference.bmh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/SkPaint_Reference.bmh b/docs/SkPaint_Reference.bmh index 3f147102bd57d..fd5c359eea41d 100644 --- a/docs/SkPaint_Reference.bmh +++ b/docs/SkPaint_Reference.bmh @@ -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); } ##