aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/SkCanvas_Reference.bmh
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-03-15 13:37:08 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-15 18:14:16 +0000
commit9c2916e0c7e0a61c0f85384c736247d4fa6d3a7b (patch)
treeb775ac6e26f52d884c444bceb931871e98742a22 /docs/SkCanvas_Reference.bmh
parentbdea98cff19c186c1492af9461cd0e0f4ad90541 (diff)
drawTextRSXform should not apply matrix to shader
drawTextRSXform should draw the same as drawTextOnPath (as regards shaders) Bug: b/69904791 Change-Id: I393dd8fd7a5bdc6a018b1ca33592b208c7141868 Reviewed-on: https://skia-review.googlesource.com/114468 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Herb Derby <herb@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'docs/SkCanvas_Reference.bmh')
-rw-r--r--docs/SkCanvas_Reference.bmh3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/SkCanvas_Reference.bmh b/docs/SkCanvas_Reference.bmh
index 1db1d0f077..a43b5fc172 100644
--- a/docs/SkCanvas_Reference.bmh
+++ b/docs/SkCanvas_Reference.bmh
@@ -5064,7 +5064,8 @@ void draw(SkCanvas* canvas) {
#In Draw
#Line # draws null terminated string at (x, y) using font advance ##
Draw null terminated string, with origin at (x, y), using Clip, Matrix, and
-Paint paint.
+Paint paint. Note that this per-glyph xform does not affect the shader (if present)
+on the paint, just the glyph's geometry.
string meaning depends on Paint_Text_Encoding; by default, strings are encoded
as UTF-8. Other values of Paint_Text_Encoding are unlikely to produce the desired