You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<div><fiddle-embedname="3cad18678254526be66ef162eecd1d23"><div><ahref='undocumented#Line'>Line</a> under "Breakfast" shows desired width, shorter than available characters.
1146
+
<ahref='undocumented#Line'>Line</a> under "Bre" shows measured width after breaking <ahref='#SkFont_breakText_text'>text</a>.
int <ahref='#SkPaint_getTextIntercepts'>getTextIntercepts</a>(const void* <ahref='undocumented#Text'>text</a>, size_t length, <ahref='undocumented#SkScalar'>SkScalar</a> x, <ahref='undocumented#SkScalar'>SkScalar</a> y,
@@ -3870,10 +3864,8 @@ Only supported on platforms that use FreeType as the <a href='SkFont_Reference#
3870
3864
</tr>
3871
3865
</table>
3872
3866
3873
-
### Example
3874
-
3875
-
<div><fiddle-embedname="79c550ec6c34054ab60fbcd1b81adc03"><div>Convert UTF-8 <ahref='#SkPaint_glyphsToUnichars_text'>text</a> to <ahref='#SkPaint_glyphsToUnichars_glyphs'>glyphs</a>; then convert <ahref='#SkPaint_glyphsToUnichars_glyphs'>glyphs</a> to Unichar code <ahref='SkPoint_Reference#Point'>points</a>.
3876
-
</div></fiddle-embed></div>
3867
+
<div>Convert UTF-8 <ahref='#SkPaint_glyphsToUnichars_text'>text</a> to <ahref='#SkPaint_glyphsToUnichars_glyphs'>glyphs</a>; then convert <ahref='#SkPaint_glyphsToUnichars_glyphs'>glyphs</a> to Unichar code <ahref='SkPoint_Reference#Point'>points</a>.
3868
+
</div>
3877
3869
3878
3870
<aname='Measure_Text'></a>
3879
3871
@@ -3992,12 +3984,6 @@ Does not scale the advance or bounds by <a href='#Fake_Bold'>fake bold</a> or <
3992
3984
3993
3985
bytes of <ahref='#SkPaint_breakText_text'>text</a> that fit, always less than or equal to <ahref='#SkPaint_breakText_length'>length</a>
3994
3986
3995
-
### Example
3996
-
3997
-
<div><fiddle-embedname="fd0033470ccbd5c7059670fdbf96cffc"><div><ahref='undocumented#Line'>Line</a> under "Breakfast" shows desired width, shorter than available characters.
3998
-
<ahref='undocumented#Line'>Line</a> under "Bre" shows measured width after breaking <ahref='#SkPaint_breakText_text'>text</a>.
3999
-
</div></fiddle-embed></div>
4000
-
4001
3987
<aname='SkPaint_getTextWidths'></a>
4002
3988
4003
3989
---
@@ -4127,153 +4113,6 @@ Uses <a href='#SkPaint_getPosTextPath_pos'>pos</a> array to position <a href='#S
4127
4113
of <ahref='undocumented#Line'>lines</a> parallel to the <ahref='undocumented#Text'>text</a> advance. <ahref='#Paint_Text_Intercepts'>Text_Intercepts</a> permits creating a
int <ahref='#SkPaint_getTextIntercepts'>getTextIntercepts</a>(const void* <ahref='undocumented#Text'>text</a>, size_t length, <ahref='undocumented#SkScalar'>SkScalar</a> x, <ahref='undocumented#SkScalar'>SkScalar</a> y,
Returns the number of <ahref='#SkPaint_getTextIntercepts_intervals'>intervals</a> that intersect <ahref='#SkPaint_getTextIntercepts_bounds'>bounds</a>.
4140
-
<ahref='#SkPaint_getTextIntercepts_bounds'>bounds</a> describes a pair of <ahref='undocumented#Line'>lines</a> parallel to the <ahref='#SkPaint_getTextIntercepts_text'>text</a> advance.
4141
-
The return count is zero or a multiple of two, and is at most twice the number of <ahref='undocumented#Glyph'>glyphs</a> in
4142
-
the <ahref='undocumented#String'>string</a>.
4143
-
Uses <ahref='undocumented#SkTextEncoding'>SkTextEncoding</a> to decode <ahref='#SkPaint_getTextIntercepts_text'>text</a>, <ahref='undocumented#SkTypeface'>SkTypeface</a> to get the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>,
4144
-
and <ahref='#Text_Size'>text size</a>, <ahref='#Fake_Bold'>fake bold</a>, and <ahref='undocumented#SkPathEffect'>SkPathEffect</a> to scale and modify the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>.
4145
-
Uses <ahref='#SkPaint_getTextIntercepts_x'>x</a>, <ahref='#SkPaint_getTextIntercepts_y'>y</a> to position <ahref='#SkPaint_getTextIntercepts_intervals'>intervals</a>.
4146
-
4147
-
Pass nullptr for <ahref='#SkPaint_getTextIntercepts_intervals'>intervals</a> to determine the <ahref='undocumented#Size'>size</a> of the interval array.
4148
-
4149
-
<ahref='#SkPaint_getTextIntercepts_intervals'>intervals</a> are cached to improve performance for multiple calls.
Returns the number of <ahref='#SkPaint_getPosTextIntercepts_intervals'>intervals</a> that intersect <ahref='#SkPaint_getPosTextIntercepts_bounds'>bounds</a>.
4190
-
<ahref='#SkPaint_getPosTextIntercepts_bounds'>bounds</a> describes a pair of <ahref='undocumented#Line'>lines</a> parallel to the <ahref='#SkPaint_getPosTextIntercepts_text'>text</a> advance.
4191
-
The return count is zero or a multiple of two, and is at most twice the number of <ahref='undocumented#Glyph'>glyphs</a> in
4192
-
the <ahref='undocumented#String'>string</a>.
4193
-
Uses <ahref='undocumented#SkTextEncoding'>SkTextEncoding</a> to decode <ahref='#SkPaint_getPosTextIntercepts_text'>text</a>, <ahref='undocumented#SkTypeface'>SkTypeface</a> to get the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>,
4194
-
and <ahref='#Text_Size'>text size</a>, <ahref='#Fake_Bold'>fake bold</a>, and <ahref='undocumented#SkPathEffect'>SkPathEffect</a> to scale and modify the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>.
4195
-
Uses <ahref='#SkPaint_getPosTextIntercepts_pos'>pos</a> array to position <ahref='#SkPaint_getPosTextIntercepts_intervals'>intervals</a>.
4196
-
4197
-
Pass nullptr for <ahref='#SkPaint_getPosTextIntercepts_intervals'>intervals</a> to determine the <ahref='undocumented#Size'>size</a> of the interval array.
4198
-
4199
-
<ahref='#SkPaint_getPosTextIntercepts_intervals'>intervals</a> are cached to improve performance for multiple calls.
Returns the number of <ahref='#SkPaint_getPosTextHIntercepts_intervals'>intervals</a> that intersect <ahref='#SkPaint_getPosTextHIntercepts_bounds'>bounds</a>.
4237
-
<ahref='#SkPaint_getPosTextHIntercepts_bounds'>bounds</a> describes a pair of <ahref='undocumented#Line'>lines</a> parallel to the <ahref='#SkPaint_getPosTextHIntercepts_text'>text</a> advance.
4238
-
The return count is zero or a multiple of two, and is at most twice the number of <ahref='undocumented#Glyph'>glyphs</a> in
4239
-
the <ahref='undocumented#String'>string</a>.
4240
-
Uses <ahref='undocumented#SkTextEncoding'>SkTextEncoding</a> to decode <ahref='#SkPaint_getPosTextHIntercepts_text'>text</a>, <ahref='undocumented#SkTypeface'>SkTypeface</a> to get the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>,
4241
-
and <ahref='#Text_Size'>text size</a>, <ahref='#Fake_Bold'>fake bold</a>, and <ahref='undocumented#SkPathEffect'>SkPathEffect</a> to scale and modify the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>.
4242
-
Uses <ahref='#SkPaint_getPosTextHIntercepts_xpos'>xpos</a> array, <ahref='#SkPaint_getPosTextHIntercepts_constY'>constY</a> to position <ahref='#SkPaint_getPosTextHIntercepts_intervals'>intervals</a>.
4243
-
4244
-
Pass nullptr for <ahref='#SkPaint_getPosTextHIntercepts_intervals'>intervals</a> to determine the <ahref='undocumented#Size'>size</a> of the interval array.
4245
-
4246
-
<ahref='#SkPaint_getPosTextHIntercepts_intervals'>intervals</a> are cached to improve performance for multiple calls.
0 commit comments