diff --git a/site/user/api/SkImage_Reference.md b/site/user/api/SkImage_Reference.md index ae71d7383d..de24356d9e 100644 --- a/site/user/api/SkImage_Reference.md +++ b/site/user/api/SkImage_Reference.md @@ -649,7 +649,9 @@ created SkImage, or nullptr ### Example -
+
textureReleaseProc may be called at some later point in time. In this example, +textureReleaseProc has no effect on the drawing. +
### See Also diff --git a/site/user/api/SkPaint_Reference.md b/site/user/api/SkPaint_Reference.md index 3895ecea9f..6fcdcde6dc 100644 --- a/site/user/api/SkPaint_Reference.md +++ b/site/user/api/SkPaint_Reference.md @@ -145,8 +145,6 @@ class SkPaint { int countText(const void* text, size_t byteLength) const; SkScalar measureText(const void* text, size_t length, SkRect* bounds) const; SkScalar measureText(const void* text, size_t length) const; - size_t breakText(const void* text, size_t length, SkScalar maxWidth, - SkScalar* measuredWidth = nullptr) const; int getTextWidths(const void* text, size_t byteLength, SkScalar widths[], SkRect bounds[] = nullptr) const; void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, @@ -3945,43 +3943,6 @@ double width = 10 - - ---- - -
-size_t breakText(const void* text, size_t length, SkScalar maxWidth,
-                 SkScalar* measuredWidth = nullptr)const
-
- -Returns the bytes of text that fit within maxWidth. -The text fragment fits if its advance width is less than or equal to maxWidth. -Measures only while the advance is less than or equal to maxWidth. -Returns the advance or the text fragment in measuredWidth if it not nullptr. -Uses SkTextEncoding to decode text, SkTypeface to get the font metrics, -and text size to scale the metrics. -Does not scale the advance or bounds by fake bold or SkPathEffect. - -### Parameters - - - - - - - - - - - - - -
textcharacter codes or glyph indices to be measured
lengthnumber of bytes of text to measure
maxWidthadvance limit; text is measured while advance is less than maxWidth
measuredWidthreturns the width of the text less than or equal to maxWidth
- -### Return Value - -bytes of text that fit, always less than or equal to length - ---