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 -
-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 - -
text |
- character codes or glyph indices to be measured | -
length |
- number of bytes of text to measure | -
maxWidth |
- advance limit; text is measured while advance is less than maxWidth | -
measuredWidth |
- returns the width of the text less than or equal to maxWidth | -