diff options
author | Herb Derby <herb@google.com> | 2018-05-21 16:10:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-21 21:53:54 +0000 |
commit | 1e7c65806f3fbde13b5d8064dc5734d98c32a284 (patch) | |
tree | e758fae7c14f09ba185b8aaa8f8306dad5cd4905 /include | |
parent | 4bfb50b904e0e92d10145398eb3a6f8dd7868867 (diff) |
drawPosText no longer obeys paint alignment
Change-Id: Iac498b54dea4aa1b203d2b9c58e15bb5f2147f82
Reviewed-on: https://skia-review.googlesource.com/129462
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkCanvas.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 8a46320ea9..97de70b5f7 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -1964,8 +1964,8 @@ public: described by byteLength of text. text meaning depends on SkPaint::TextEncoding; by default, text is encoded as - UTF-8. pos elements' meaning depends on SkPaint::Align and SkPaint vertical text; - by default each glyph left side bearing is positioned at x and its + UTF-8. pos elements' meaning depends on SkPaint vertical text; + by each glyph left side bearing is positioned at x and its baseline is positioned at y. Text size is affected by SkMatrix and SkPaint text size. @@ -1989,8 +1989,8 @@ public: must match the number of glyphs described by byteLength of text. text meaning depends on SkPaint::TextEncoding; by default, text is encoded as - UTF-8. xpos elements' meaning depends on SkPaint::Align and SkPaint vertical text; - by default each glyph left side bearing is positioned at an xpos element and + UTF-8. xpos elements' meaning depends SkPaint vertical text; + each glyph left side bearing is positioned at an xpos element and its baseline is positioned at constY. Text size is affected by SkMatrix and SkPaint text size. |