diff options
author | Mike Reed <reed@google.com> | 2019-01-30 09:56:27 -0500 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2019-01-30 15:07:28 +0000 |
commit | a150aa33b37d88265c33bc33c69395c583d1e702 (patch) | |
tree | 5c4a09861c43cc283025130dbe703a9420c6e44e /docs | |
parent | 95cbd06b9ed9718b9b5adc0bf4c97c1d1fdf53f0 (diff) | |
download | platform_external_skqp-a150aa33b37d88265c33bc33c69395c583d1e702.tar.gz platform_external_skqp-a150aa33b37d88265c33bc33c69395c583d1e702.tar.bz2 platform_external_skqp-a150aa33b37d88265c33bc33c69395c583d1e702.zip |
remove breakText from docs
Bug: skia:
Change-Id: If46f02a9e199a57eab6e3bb154795b257d1bf365
Reviewed-on: https://skia-review.googlesource.com/c/188023
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/SkFont_Reference.bmh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/docs/SkFont_Reference.bmh b/docs/SkFont_Reference.bmh index 43a744c6b1..e1c0490831 100644 --- a/docs/SkFont_Reference.bmh +++ b/docs/SkFont_Reference.bmh @@ -799,42 +799,6 @@ Whether edge pixels draw opaque or with partial transparency. # ------------------------------------------------------------------------------ -#Method size_t breakText(const void* text, size_t length, SkTextEncoding encoding, SkScalar maxWidth, - SkScalar* measuredWidth = nullptr) const -#In incomplete -#Line # incomplete ## -#Populate - -#Example - #Description - Line under "Breakfast" shows desired width, shorter than available characters. - Line under "Bre" shows measured width after breaking text. - ## - #Height 128 - #Width 280 - void draw(SkCanvas* canvas) { - SkPaint paint; - SkFont font(nullptr, 50); - const char str[] = "Breakfast"; - const int count = strlen(str); - canvas->drawSimpleText(str, count, kUTF8_SkTextEncoding, - 25, 50, font, paint); - SkScalar measuredWidth; - int partialBytes = font.breakText(str, count, kUTF8_SkTextEncoding, - 100, &measuredWidth); - canvas->drawSimpleText(str, partialBytes, kUTF8_SkTextEncoding, - 25, 100, font, paint); - canvas->drawLine(25, 60, 25 + 100, 60, paint); - canvas->drawLine(25, 110, 25 + measuredWidth, 110, paint); - } -## - -#SeeAlso incomplete - -#Method ## - -# ------------------------------------------------------------------------------ - #Method SkScalar measureText(const void* text, size_t byteLength, SkTextEncoding encoding, SkRect* bounds = nullptr) const #In incomplete |