SKTypeface.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
| Name | Description |
|---|---|
| GetGlyphs(ReadOnlySpan<Char>) |
Returns the glyph IDs for the specified text. |
| GetGlyphs(ReadOnlySpan<Int32>) |
Obsolete.
Returns the glyph IDs for the specified Unicode codepoints. |
| GetGlyphs(String) |
Retrieve the corresponding glyph IDs of a string of characters. |
| GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding) |
Returns the glyph IDs for the specified buffer of character codes. |
| GetGlyphs(IntPtr, Int32, SKTextEncoding) |
Returns the glyph IDs for the specified buffer of character codes. |
GetGlyphs(ReadOnlySpan<Char>)
Returns the glyph IDs for the specified text.
public ushort[] GetGlyphs(ReadOnlySpan<char> text);
Parameters
- text
- ReadOnlySpan<Char>
The text containing characters.
Returns
The corresponding glyph IDs for each character.
Applies to
GetGlyphs(ReadOnlySpan<Int32>)
Caution
Use SKFont directly instead.
Returns the glyph IDs for the specified Unicode codepoints.
[System.Obsolete("Use SKFont directly instead.")]
public ushort[] GetGlyphs(ReadOnlySpan<int> codepoints);
Parameters
- codepoints
- ReadOnlySpan<Int32>
The Unicode codepoints.
Returns
The corresponding glyph IDs for each codepoint.
- Attributes
Applies to
GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding)
Returns the glyph IDs for the specified buffer of character codes.
public ushort[] GetGlyphs(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding);
Parameters
- text
- ReadOnlySpan<Byte>
The buffer containing character codes.
- encoding
- SKTextEncoding
The encoding of the character codes.
Returns
The corresponding glyph IDs for each character.
Applies to
GetGlyphs(IntPtr, Int32, SKTextEncoding)
Returns the glyph IDs for the specified buffer of character codes.
public ushort[] GetGlyphs(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding);
Parameters
- text
- IntPtr
The pointer to the buffer containing character codes.
- length
- Int32
The length of the buffer in bytes.
- encoding
- SKTextEncoding
The encoding of the character codes.
Returns
The corresponding glyph IDs for each character.