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
SkiaSharp