Skip to content

Commit a69b103

Browse files
skia-bookmakerSkia Commit-Bot
authored andcommitted
Update markdown files
Automatic commit by the Housekeeper-Nightly-Bookmaker bot. TBR=rmistry@google.com NO_MERGE_BUILDS Change-Id: Ic8c33e6519a55b6b9d1b28b90960bd99df29b7c4 Reviewed-on: https://skia-review.googlesource.com/c/177176 Reviewed-by: <skia-bookmaker@skia-swarming-bots.iam.gserviceaccount.com> Commit-Queue: <skia-bookmaker@skia-swarming-bots.iam.gserviceaccount.com>
1 parent 2706873 commit a69b103

File tree

2 files changed

+43
-52
lines changed

2 files changed

+43
-52
lines changed

site/user/api/SkPaint_Reference.md

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ class <a href='SkPaint_Reference#SkPaint'>SkPaint</a> {
153153
<a href='SkPath_Reference#SkPath'>SkPath</a>* <a href='SkPath_Reference#Path'>path</a>) const;
154154
void <a href='#SkPaint_getPosTextPath'>getPosTextPath</a>(const void* <a href='undocumented#Text'>text</a>, size_t length,
155155
const <a href='SkPoint_Reference#SkPoint'>SkPoint</a> pos[], <a href='SkPath_Reference#SkPath'>SkPath</a>* <a href='SkPath_Reference#Path'>path</a>) const;
156-
int <a href='#SkPaint_getTextBlobIntercepts'>getTextBlobIntercepts</a>(const <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>* blob, const <a href='undocumented#SkScalar'>SkScalar</a> bounds[2],
157-
<a href='undocumented#SkScalar'>SkScalar</a>* intervals) const;
158156
bool <a href='#SkPaint_nothingToDraw'>nothingToDraw</a>() const;
159157
};
160158

@@ -4107,55 +4105,6 @@ Uses <a href='#SkPaint_getPosTextPath_pos'>pos</a> array to position <a href='#S
41074105
<div><fiddle-embed name="7f27c93472aa99a7542fb3493076f072"><div>Simplifies three <a href='undocumented#Glyph'>Glyphs</a> to eliminate overlaps, and strokes the result.
41084106
</div></fiddle-embed></div>
41094107

4110-
<a name='Text_Intercepts'></a>
4111-
4112-
<a href='#Paint_Text_Intercepts'>Text_Intercepts</a> describe the intersection of drawn <a href='undocumented#Text'>text</a> <a href='undocumented#Glyph'>Glyphs</a> with a pair
4113-
of <a href='undocumented#Line'>lines</a> parallel to the <a href='undocumented#Text'>text</a> advance. <a href='#Paint_Text_Intercepts'>Text_Intercepts</a> permits creating a
4114-
underline that skips Descenders.
4115-
4116-
<a name='SkPaint_getTextBlobIntercepts'></a>
4117-
4118-
---
4119-
4120-
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
4121-
int <a href='#SkPaint_getTextBlobIntercepts'>getTextBlobIntercepts</a>(const <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>* blob, const <a href='undocumented#SkScalar'>SkScalar</a> bounds[2], <a href='undocumented#SkScalar'>SkScalar</a>* intervals)const
4122-
</pre>
4123-
4124-
Returns the number of <a href='#SkPaint_getTextBlobIntercepts_intervals'>intervals</a> that intersect <a href='#SkPaint_getTextBlobIntercepts_bounds'>bounds</a>.
4125-
<a href='#SkPaint_getTextBlobIntercepts_bounds'>bounds</a> describes a pair of <a href='undocumented#Line'>lines</a> parallel to the <a href='undocumented#Text'>text</a> advance.
4126-
The return count is zero or a multiple of two, and is at most twice the number of <a href='undocumented#Glyph'>glyphs</a> in
4127-
the <a href='undocumented#String'>string</a>.
4128-
Uses <a href='undocumented#SkTypeface'>SkTypeface</a> to get the <a href='undocumented#Glyph'>glyph</a> <a href='SkPath_Reference#Path'>paths</a>,
4129-
and <a href='#Text_Size'>text size</a>, <a href='#Fake_Bold'>fake bold</a>, and <a href='undocumented#SkPathEffect'>SkPathEffect</a> to scale and modify the <a href='undocumented#Glyph'>glyph</a> <a href='SkPath_Reference#Path'>paths</a>.
4130-
Uses run array to position <a href='#SkPaint_getTextBlobIntercepts_intervals'>intervals</a>.
4131-
4132-
<a href='undocumented#SkTextEncoding'>SkTextEncoding</a> must be set to <a href='undocumented#kGlyphID_SkTextEncoding'>kGlyphID_SkTextEncoding</a>.
4133-
4134-
Pass nullptr for <a href='#SkPaint_getTextBlobIntercepts_intervals'>intervals</a> to determine the <a href='undocumented#Size'>size</a> of the interval array.
4135-
4136-
<a href='#SkPaint_getTextBlobIntercepts_intervals'>intervals</a> are cached to improve performance for multiple calls.
4137-
4138-
### Parameters
4139-
4140-
<table> <tr> <td><a name='SkPaint_getTextBlobIntercepts_blob'><code><strong>blob</strong></code></a></td>
4141-
<td><a href='undocumented#Glyph'>glyphs</a>, positions, and <a href='undocumented#Text'>text</a> <a href='SkPaint_Reference#Paint'>paint</a> attributes</td>
4142-
</tr>
4143-
<tr> <td><a name='SkPaint_getTextBlobIntercepts_bounds'><code><strong>bounds</strong></code></a></td>
4144-
<td>lower and upper <a href='undocumented#Line'>line</a> parallel to the advance</td>
4145-
</tr>
4146-
<tr> <td><a name='SkPaint_getTextBlobIntercepts_intervals'><code><strong>intervals</strong></code></a></td>
4147-
<td>returned intersections; may be nullptr</td>
4148-
</tr>
4149-
</table>
4150-
4151-
### Return Value
4152-
4153-
number of intersections; may be zero
4154-
4155-
### Example
4156-
4157-
<div><fiddle-embed name="728ea9089f233a71a1062e364b8c73fa"></fiddle-embed></div>
4158-
41594108
<a name='SkPaint_nothingToDraw'></a>
41604109

41614110
---

site/user/api/SkTextBlob_Reference.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a> final : public <a
1111

1212
const <a href='SkRect_Reference#SkRect'>SkRect</a>& <a href='#SkTextBlob_bounds'>bounds()</a> const;
1313
uint32_t <a href='#SkTextBlob_uniqueID'>uniqueID</a>() const;
14-
int getIntercepts(const <a href='undocumented#SkScalar'>SkScalar</a> bounds[2], <a href='undocumented#SkScalar'>SkScalar</a> intervals[],
14+
int <a href='#SkTextBlob_getIntercepts'>getIntercepts</a>(const <a href='undocumented#SkScalar'>SkScalar</a> bounds[2], <a href='undocumented#SkScalar'>SkScalar</a> intervals[],
1515
const <a href='SkPaint_Reference#SkPaint'>SkPaint</a>* <a href='SkPaint_Reference#Paint'>paint</a> = nullptr) const;
1616
static <a href='undocumented#sk_sp'>sk_sp</a><<a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>> <a href='#SkTextBlob_MakeFromText'>MakeFromText</a>(const void* <a href='undocumented#Text'>text</a>, size_t byteLength, const <a href='SkFont_Reference#SkFont'>SkFont</a>& <a href='SkFont_Reference#Font'>font</a>,
1717
<a href='undocumented#SkTextEncoding'>SkTextEncoding</a> encoding = <a href='undocumented#kUTF8_SkTextEncoding'>kUTF8_SkTextEncoding</a>);
@@ -75,6 +75,48 @@ identifier for <a href='SkTextBlob_Reference#SkTextBlob'>SkTextBlob</a>
7575

7676
<a href='undocumented#SkRefCnt'>SkRefCnt</a>
7777

78+
<a name='Text_Intercepts'></a>
79+
80+
<a href='#Text_Blob_Text_Intercepts'>Text_Intercepts</a> describe the intersection of drawn <a href='undocumented#Text'>text</a> <a href='undocumented#Glyph'>Glyphs</a> with a pair
81+
of <a href='undocumented#Line'>lines</a> parallel to the <a href='undocumented#Text'>text</a> advance. <a href='#Text_Blob_Text_Intercepts'>Text_Intercepts</a> permits creating a
82+
underline that skips Descenders.
83+
84+
<a name='SkTextBlob_getIntercepts'></a>
85+
86+
---
87+
88+
<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
89+
int <a href='#SkTextBlob_getIntercepts'>getIntercepts</a>(const <a href='undocumented#SkScalar'>SkScalar</a> bounds[2], <a href='undocumented#SkScalar'>SkScalar</a> intervals[], const <a href='SkPaint_Reference#SkPaint'>SkPaint</a>* <a href='SkPaint_Reference#Paint'>paint</a> = nullptr) const;
90+
</pre>
91+
92+
Returns the number of <a href='#SkTextBlob_getIntercepts_intervals'>intervals</a> that intersect <a href='#SkTextBlob_getIntercepts_bounds'>bounds</a>.
93+
<a href='#SkTextBlob_getIntercepts_bounds'>bounds</a> describes a pair of <a href='undocumented#Line'>lines</a> parallel to the <a href='undocumented#Text'>text</a> advance.
94+
The return count is zero or a multiple of two, and is at most twice the number of <a href='undocumented#Glyph'>glyphs</a> in
95+
the the blob.
96+
97+
Pass nullptr for <a href='#SkTextBlob_getIntercepts_intervals'>intervals</a> to determine the <a href='undocumented#Size'>size</a> of the interval array.
98+
99+
### Parameters
100+
101+
<table> <tr> <td><a name='SkTextBlob_getIntercepts_bounds'><code><strong>bounds</strong></code></a></td>
102+
<td>lower and upper <a href='undocumented#Line'>line</a> parallel to the advance</td>
103+
</tr>
104+
<tr> <td><a name='SkTextBlob_getIntercepts_intervals'><code><strong>intervals</strong></code></a></td>
105+
<td>returned intersections; may be nullptr</td>
106+
</tr>
107+
<tr> <td><a name='SkTextBlob_getIntercepts_paint'><code><strong>paint</strong></code></a></td>
108+
<td>specifies stroking, <a href='undocumented#SkPathEffect'>SkPathEffect</a> that affects the result; may be nullptr</td>
109+
</tr>
110+
</table>
111+
112+
### Return Value
113+
114+
number of intersections; may be zero
115+
116+
### Example
117+
118+
<div><fiddle-embed name="e9d4eb8ece521b1329e7433d4b243fdf"></fiddle-embed></div>
119+
78120
<a name='SkTextBlob_MakeFromText'></a>
79121

80122
---

0 commit comments

Comments
 (0)