From 9c2916e0c7e0a61c0f85384c736247d4fa6d3a7b Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 15 Mar 2018 13:37:08 -0400 Subject: 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 Reviewed-by: Herb Derby Reviewed-by: Florin Malita --- docs/SkCanvas_Reference.bmh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/SkCanvas_Reference.bmh') 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 -- cgit v1.2.3