From 35d1470c71169ecae77601d5471d1b88506c1485 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Tue, 15 Jan 2019 11:57:41 -0500 Subject: [PATCH] Documentation: fix drawSimpleText Change-Id: I72302576824484eadef9f0e1b045e4095fc443e6 Reviewed-on: https://skia-review.googlesource.com/c/184068 Reviewed-by: Hal Canary Commit-Queue: Hal Canary --- docs/SkCanvas_Reference.bmh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/SkCanvas_Reference.bmh b/docs/SkCanvas_Reference.bmh index ddfe680f63..53282794d7 100644 --- a/docs/SkCanvas_Reference.bmh +++ b/docs/SkCanvas_Reference.bmh @@ -3900,7 +3900,7 @@ void draw(SkCanvas* canvas) { float textSizes[] = { 12, 18, 24, 36 }; for (auto size: textSizes ) { font.setSize(size); - canvas->drawText("Aa", 2, kUTF8_SkTextEncoding, 10, 20, font, paint); + canvas->drawSimpleText("Aa", 2, kUTF8_SkTextEncoding, 10, 20, font, paint); canvas->translate(0, size * 2); } font.setSize(12); @@ -3910,7 +3910,8 @@ void draw(SkCanvas* canvas) { canvas->resetMatrix(); canvas->translate(100, 0); canvas->scale(scale, scale); - canvas->drawText("Aa", 2, kUTF8_SkTextEncoding, 10 / scale, yPos / scale, font, paint); + canvas->drawSimpleText("Aa", 2, kUTF8_SkTextEncoding, + 10 / scale, yPos / scale, font, paint); yPos += size * 2; } }