aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/SkPaint_Reference.bmh
diff options
context:
space:
mode:
authorGravatar Cary Clark <caryclark@skia.org>2017-12-01 11:49:58 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-01 17:13:39 +0000
commit3cd22cc543ba410f8b46b8b0ca22fb8580040472 (patch)
treecf5a4d8a4d024492c8f23203c6ec042f856a324c /docs/SkPaint_Reference.bmh
parent8ceee43de49b314fff58852c2d89ed3885ae71ee (diff)
working on skimage
working on skimage Docs-Preview: https://skia.org/?cl=76562 Bug: skia: Change-Id: I288d2a9bbbdf01bff9efd5f0a9d308d3c76391a4 Reviewed-on: https://skia-review.googlesource.com/76562 Reviewed-by: Cary Clark <caryclark@skia.org> Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'docs/SkPaint_Reference.bmh')
-rw-r--r--docs/SkPaint_Reference.bmh6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/SkPaint_Reference.bmh b/docs/SkPaint_Reference.bmh
index 8d3bd604c1..4a5da73ca4 100644
--- a/docs/SkPaint_Reference.bmh
+++ b/docs/SkPaint_Reference.bmh
@@ -591,7 +591,6 @@ can reconstitute the paint at a later time.
void writeRegion(const SkRegion& region) override {}
void writePath(const SkPath& path) override {}
size_t writeStream(SkStream* stream, size_t length) override { return 0; }
- void writeBitmap(const SkBitmap& bitmap) override {}
void writeImage(const SkImage*) override {}
void writeTypeface(SkTypeface* typeface) override {}
void writePaint(const SkPaint& paint) override {}
@@ -5093,10 +5092,12 @@ void draw(SkCanvas* canvas) {
bounds describes a pair of lines parallel to the text advance.
The return count is zero or a multiple of two, and is at most twice the number of Glyphs in
the string.
- Uses Text_Encoding to decode text, Typeface to get the glyph paths,
+ Uses Typeface to get the glyph paths,
and Text_Size, Fake_Bold, and Path_Effect to scale and modify the glyph paths.
Uses run array and Text_Align to position intervals.
+ Text_Encoding must be set to SkPaint::kGlyphID_TextEncoding.
+
Pass nullptr for intervals to determine the size of the interval array.
intervals are cached to improve performance for multiple calls.
@@ -5111,6 +5112,7 @@ void draw(SkCanvas* canvas) {
#Height 143
void draw(SkCanvas* canvas) {
SkPaint paint;
+ paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding);
paint.setTextSize(120);
SkPoint textPos = { 20, 110 };
int len = 3;