SKPaint.GetGlyphs Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetGlyphs(Byte[]) |
Converts text into glyph indices. |
GetGlyphs(ReadOnlySpan<Byte>) | |
GetGlyphs(ReadOnlySpan<Char>) | |
GetGlyphs(String) |
Converts text into glyph indices. |
GetGlyphs(IntPtr, Int32) |
Converts text into glyph indices. |
GetGlyphs(IntPtr, IntPtr) |
Converts text into glyph indices. |
GetGlyphs(Byte[])
Converts text into glyph indices.
public ushort[] GetGlyphs (byte[] text);
Parameters
- text
- Byte[]
The text encoded using the encoding specified in TextEncoding format.
Returns
Returns the glyph indices.
Remarks
This method does not check the text for valid character codes or valid glyph indices.
Applies to
GetGlyphs(ReadOnlySpan<Byte>)
public ushort[] GetGlyphs (ReadOnlySpan<byte> text);
Parameters
- text
- ReadOnlySpan<Byte>
Returns
Applies to
GetGlyphs(ReadOnlySpan<Char>)
public ushort[] GetGlyphs (ReadOnlySpan<char> text);
Parameters
- text
- ReadOnlySpan<Char>
Returns
Applies to
GetGlyphs(String)
GetGlyphs(IntPtr, Int32)
Converts text into glyph indices.
public ushort[] GetGlyphs (IntPtr text, int length);
Parameters
- text
- IntPtr
The text buffer encoded using the encoding specified in TextEncoding format.
- length
- Int32
The length of the text buffer.
Returns
Returns the glyph indices.
Remarks
This method does not check the text for valid character codes or valid glyph indices.
Applies to
GetGlyphs(IntPtr, IntPtr)
Converts text into glyph indices.
public ushort[] GetGlyphs (IntPtr text, IntPtr length);
Parameters
- text
- IntPtr
The text buffer encoded using the encoding specified in TextEncoding format.
- length
- IntPtr
The length of the text buffer.
Returns
Returns the glyph indices.
Remarks
This method does not check the text for valid character codes or valid glyph indices.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應