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
Copy file name to clipboardExpand all lines: site/user/api/SkCanvas_Reference.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5275,7 +5275,7 @@ Draws <a href='#SkCanvas_drawText_text'>text</a>, with origin at (<a href='#SkCa
5275
5275
<ahref='#SkCanvas_drawText_text'>text</a> meaning depends on <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</a>; by default, <ahref='#SkCanvas_drawText_text'>text</a> is encoded as
5276
5276
UTF-8.
5277
5277
5278
-
<ahref='#SkCanvas_drawText_x'>x</a> and <ahref='#SkCanvas_drawText_y'>y</a> meaning depends on <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> vertical <ahref='#SkCanvas_drawText_text'>text</a>; by default
5278
+
<ahref='#SkCanvas_drawText_x'>x</a> and <ahref='#SkCanvas_drawText_y'>y</a> meaning depends on <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::Align and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> vertical <ahref='#SkCanvas_drawText_text'>text</a>; by default
5279
5279
<ahref='#SkCanvas_drawText_text'>text</a> draws left to right, positioning the first <ahref='undocumented#Glyph'>glyph</a> <ahref='undocumented#Left_Side_Bearing'>left side bearing</a> at <ahref='#SkCanvas_drawText_x'>x</a>
5280
5280
and its baseline at <ahref='#SkCanvas_drawText_y'>y</a>. <ahref='undocumented#Text'>Text</a> <ahref='undocumented#Size'>size</a> is affected by <ahref='SkMatrix_Reference#SkMatrix'>SkMatrix</a> and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> <ahref='#SkCanvas_drawText_text'>text</a> <ahref='undocumented#Size'>size</a>.
5281
5281
@@ -5327,7 +5327,7 @@ Draws null terminated <a href='#SkCanvas_drawString_string'>string</a>, with ori
5327
5327
as UTF-8. Other values of <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</a> are unlikely to produce the desired
5328
5328
results, since zero bytes may be embedded in the <ahref='#SkCanvas_drawString_string'>string</a>.
5329
5329
5330
-
<ahref='#SkCanvas_drawString_x'>x</a> and <ahref='#SkCanvas_drawString_y'>y</a> meaning depends on <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> vertical <ahref='undocumented#Text'>text</a>; by default
5330
+
<ahref='#SkCanvas_drawString_x'>x</a> and <ahref='#SkCanvas_drawString_y'>y</a> meaning depends on <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::Align and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> vertical <ahref='undocumented#Text'>text</a>; by default
5331
5331
<ahref='#SkCanvas_drawString_string'>string</a> draws left to right, positioning the first <ahref='undocumented#Glyph'>glyph</a> <ahref='undocumented#Left_Side_Bearing'>left side bearing</a> at <ahref='#SkCanvas_drawString_x'>x</a>
5332
5332
and its baseline at <ahref='#SkCanvas_drawString_y'>y</a>. <ahref='undocumented#Text'>Text</a> <ahref='undocumented#Size'>size</a> is affected by <ahref='SkMatrix_Reference#SkMatrix'>SkMatrix</a> and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> <ahref='undocumented#Text'>text</a> <ahref='undocumented#Size'>size</a>.
5333
5333
@@ -5380,7 +5380,7 @@ Draws null terminated <a href='#SkCanvas_drawString_2_string'>string</a>, with o
5380
5380
as UTF-8. Other values of <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</a> are unlikely to produce the desired
5381
5381
results, since zero bytes may be embedded in the <ahref='#SkCanvas_drawString_2_string'>string</a>.
5382
5382
5383
-
<ahref='#SkCanvas_drawString_2_x'>x</a> and <ahref='#SkCanvas_drawString_2_y'>y</a> meaning depends on <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> vertical <ahref='undocumented#Text'>text</a>; by default
5383
+
<ahref='#SkCanvas_drawString_2_x'>x</a> and <ahref='#SkCanvas_drawString_2_y'>y</a> meaning depends on <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::Align and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> vertical <ahref='undocumented#Text'>text</a>; by default
5384
5384
<ahref='#SkCanvas_drawString_2_string'>string</a> draws left to right, positioning the first <ahref='undocumented#Glyph'>glyph</a> <ahref='undocumented#Left_Side_Bearing'>left side bearing</a> at <ahref='#SkCanvas_drawString_2_x'>x</a>
5385
5385
and its baseline at <ahref='#SkCanvas_drawString_2_y'>y</a>. <ahref='undocumented#Text'>Text</a> <ahref='undocumented#Size'>size</a> is affected by <ahref='SkMatrix_Reference#SkMatrix'>SkMatrix</a> and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a> <ahref='undocumented#Text'>text</a> <ahref='undocumented#Size'>size</a>.
Draws <ahref='SkTextBlob_Reference#Text_Blob'>Text Blob</a> <ahref='#SkCanvas_drawTextBlob_blob'>blob</a> at (<ahref='#SkCanvas_drawTextBlob_x'>x</a>, <ahref='#SkCanvas_drawTextBlob_y'>y</a>), using <ahref='#Clip'>Clip</a>, <ahref='#Matrix'>Matrix</a>, and <ahref='SkPaint_Reference#Paint'>Paint</a> <ahref='#SkCanvas_drawTextBlob_paint'>paint</a>.
5581
5581
5582
5582
<ahref='#SkCanvas_drawTextBlob_blob'>blob</a> contains <ahref='undocumented#Glyph'>Glyphs</a>, their positions, and <ahref='#SkCanvas_drawTextBlob_paint'>paint</a> attributes specific to text: <ahref='undocumented#Typeface'>Typeface</a>, <ahref='SkPaint_Reference#Text_Size'>Paint Text Size</a>, <ahref='SkPaint_Reference#Text_Scale_X'>Paint Text Scale X</a>,
5583
-
<ahref='SkPaint_Reference#Text_Skew_X'>Paint Text Skew X</a>, <ahref='SkPaint_Reference#Text_Align'>Paint Text Align</a>, <ahref='SkPaint_Reference#Hinting'>Paint Hinting</a>, <ahref='SkPaint_Reference#Anti_Alias'>Anti Alias</a>, <ahref='SkPaint_Reference#Fake_Bold'>Paint Fake Bold</a>,
Draws <ahref='SkTextBlob_Reference#Text_Blob'>Text Blob</a> <ahref='#SkCanvas_drawTextBlob_2_blob'>blob</a> at (<ahref='#SkCanvas_drawTextBlob_2_x'>x</a>, <ahref='#SkCanvas_drawTextBlob_2_y'>y</a>), using <ahref='#Clip'>Clip</a>, <ahref='#Matrix'>Matrix</a>, and <ahref='SkPaint_Reference#Paint'>Paint</a> <ahref='#SkCanvas_drawTextBlob_2_paint'>paint</a>.
5628
5628
5629
5629
<ahref='#SkCanvas_drawTextBlob_2_blob'>blob</a> contains <ahref='undocumented#Glyph'>Glyphs</a>, their positions, and <ahref='#SkCanvas_drawTextBlob_2_paint'>paint</a> attributes specific to text: <ahref='undocumented#Typeface'>Typeface</a>, <ahref='SkPaint_Reference#Text_Size'>Paint Text Size</a>, <ahref='SkPaint_Reference#Text_Scale_X'>Paint Text Scale X</a>,
5630
-
<ahref='SkPaint_Reference#Text_Skew_X'>Paint Text Skew X</a>, <ahref='SkPaint_Reference#Text_Align'>Paint Text Align</a>, <ahref='SkPaint_Reference#Hinting'>Paint Hinting</a>, <ahref='SkPaint_Reference#Anti_Alias'>Anti Alias</a>, <ahref='SkPaint_Reference#Fake_Bold'>Paint Fake Bold</a>,
@@ -4821,7 +4726,7 @@ Returns the geometry as <a href='SkPath_Reference#SkPath'>SkPath</a> equivalent
4821
4726
Uses <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</a> to decode <ahref='#SkPaint_getTextPath_text'>text</a>, <ahref='undocumented#SkTypeface'>SkTypeface</a> to get the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>,
4822
4727
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>.
4823
4728
All of the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a> are stored in <ahref='#SkPaint_getTextPath_path'>path</a>.
4824
-
Uses <ahref='#SkPaint_getTextPath_x'>x</a>, <ahref='#SkPaint_getTextPath_y'>y</a>, and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> to position <ahref='#SkPaint_getTextPath_path'>path</a>.
4729
+
Uses <ahref='#SkPaint_getTextPath_x'>x</a>, <ahref='#SkPaint_getTextPath_y'>y</a>, to position <ahref='#SkPaint_getTextPath_path'>path</a>.
4825
4730
4826
4731
### Parameters
4827
4732
@@ -4860,7 +4765,7 @@ Returns the geometry as <a href='SkPath_Reference#SkPath'>SkPath</a> equivalent
4860
4765
Uses <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</a> to decode <ahref='#SkPaint_getPosTextPath_text'>text</a>, <ahref='undocumented#SkTypeface'>SkTypeface</a> to get the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>,
4861
4766
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>.
4862
4767
All of the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a> are stored in <ahref='#SkPaint_getPosTextPath_path'>path</a>.
4863
-
Uses <ahref='#SkPaint_getPosTextPath_pos'>pos</a> array and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> to position <ahref='#SkPaint_getPosTextPath_path'>path</a>.
4768
+
Uses <ahref='#SkPaint_getPosTextPath_pos'>pos</a> array to position <ahref='#SkPaint_getPosTextPath_path'>path</a>.
4864
4769
<ahref='#SkPaint_getPosTextPath_pos'>pos</a> contains a position for each <ahref='undocumented#Glyph'>glyph</a>.
4865
4770
4866
4771
### Parameters
@@ -4905,7 +4810,7 @@ The return count is zero or a multiple of two, and is at most twice the number o
4905
4810
the <ahref='undocumented#String'>string</a>.
4906
4811
Uses <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</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>,
4907
4812
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>.
4908
-
Uses <ahref='#SkPaint_getTextIntercepts_x'>x</a>, <ahref='#SkPaint_getTextIntercepts_y'>y</a>, and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> to position <ahref='#SkPaint_getTextIntercepts_intervals'>intervals</a>.
4813
+
Uses <ahref='#SkPaint_getTextIntercepts_x'>x</a>, <ahref='#SkPaint_getTextIntercepts_y'>y</a> to position <ahref='#SkPaint_getTextIntercepts_intervals'>intervals</a>.
4909
4814
4910
4815
Pass nullptr for <ahref='#SkPaint_getTextIntercepts_intervals'>intervals</a> to determine the <ahref='undocumented#Size'>size</a> of the interval array.
4911
4816
@@ -4957,7 +4862,7 @@ The return count is zero or a multiple of two, and is at most twice the number o
4957
4862
the <ahref='undocumented#String'>string</a>.
4958
4863
Uses <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</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>,
4959
4864
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>.
4960
-
Uses <ahref='#SkPaint_getPosTextIntercepts_pos'>pos</a> array and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> to position <ahref='#SkPaint_getPosTextIntercepts_intervals'>intervals</a>.
4865
+
Uses <ahref='#SkPaint_getPosTextIntercepts_pos'>pos</a> array to position <ahref='#SkPaint_getPosTextIntercepts_intervals'>intervals</a>.
4961
4866
4962
4867
Pass nullptr for <ahref='#SkPaint_getPosTextIntercepts_intervals'>intervals</a> to determine the <ahref='undocumented#Size'>size</a> of the interval array.
4963
4868
@@ -5006,7 +4911,7 @@ The return count is zero or a multiple of two, and is at most twice the number o
5006
4911
the <ahref='undocumented#String'>string</a>.
5007
4912
Uses <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</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>,
5008
4913
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>.
5009
-
Uses <ahref='#SkPaint_getPosTextHIntercepts_xpos'>xpos</a> array, <ahref='#SkPaint_getPosTextHIntercepts_constY'>constY</a>, and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> to position <ahref='#SkPaint_getPosTextHIntercepts_intervals'>intervals</a>.
4914
+
Uses <ahref='#SkPaint_getPosTextHIntercepts_xpos'>xpos</a> array, <ahref='#SkPaint_getPosTextHIntercepts_constY'>constY</a> to position <ahref='#SkPaint_getPosTextHIntercepts_intervals'>intervals</a>.
5010
4915
5011
4916
Pass nullptr for <ahref='#SkPaint_getPosTextHIntercepts_intervals'>intervals</a> to determine the <ahref='undocumented#Size'>size</a> of the interval array.
5012
4917
@@ -5057,7 +4962,7 @@ The return count is zero or a multiple of two, and is at most twice the number o
5057
4962
the <ahref='undocumented#String'>string</a>.
5058
4963
Uses <ahref='undocumented#SkTypeface'>SkTypeface</a> to get the <ahref='undocumented#Glyph'>glyph</a> <ahref='SkPath_Reference#Path'>paths</a>,
5059
4964
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>.
5060
-
Uses run array and <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_Align'>Align</a> to position <ahref='#SkPaint_getTextBlobIntercepts_intervals'>intervals</a>.
4965
+
Uses run array to position <ahref='#SkPaint_getTextBlobIntercepts_intervals'>intervals</a>.
5061
4966
5062
4967
<ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_TextEncoding'>TextEncoding</a> must be set to <ahref='SkPaint_Reference#SkPaint'>SkPaint</a>::<ahref='#SkPaint_kGlyphID_TextEncoding'>kGlyphID_TextEncoding</a>.
0 commit comments