SKFont.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(String, Span<UInt16>) |
Converts text to glyph IDs. |
| GetGlyphs(IntPtr, Int32, SKTextEncoding, Span<UInt16>) |
Converts text to glyph IDs. |
| GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding, Span<UInt16>) |
Converts text to glyph IDs. |
| GetGlyphs(IntPtr, Int32, SKTextEncoding) |
Converts text to glyph IDs. |
| GetGlyphs(ReadOnlySpan<Int32>, Span<UInt16>) |
Converts text to glyph IDs. |
| GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding) |
Converts text to glyph IDs. |
| GetGlyphs(String) |
Converts text to glyph IDs. |
| GetGlyphs(ReadOnlySpan<Int32>) |
Converts text to glyph IDs. |
| GetGlyphs(ReadOnlySpan<Char>) |
Converts text to glyph IDs. |
| GetGlyphs(ReadOnlySpan<Char>, Span<UInt16>) |
Converts text to glyph IDs. |
GetGlyphs(IntPtr, Int32, SKTextEncoding, Span<UInt16>)
Converts text to glyph IDs.
public void GetGlyphs(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding, Span<ushort> glyphs);
Parameters
- text
- IntPtr
A pointer to the text buffer.
- length
- Int32
The number of bytes in the text buffer.
- encoding
- SKTextEncoding
The SKTextEncoding of the text.
Applies to
GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding, Span<UInt16>)
Converts text to glyph IDs.
public void GetGlyphs(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding, Span<ushort> glyphs);
Parameters
- text
- ReadOnlySpan<Byte>
The text to convert.
- encoding
- SKTextEncoding
The SKTextEncoding of the text.
Applies to
GetGlyphs(IntPtr, Int32, SKTextEncoding)
Converts text to glyph IDs.
public ushort[] GetGlyphs(IntPtr text, int length, SkiaSharp.SKTextEncoding encoding);
Parameters
- text
- IntPtr
A pointer to the text buffer.
- length
- Int32
The number of bytes in the text buffer.
- encoding
- SKTextEncoding
The SKTextEncoding of the text.
Returns
An array of glyph IDs.
Applies to
GetGlyphs(ReadOnlySpan<Int32>, Span<UInt16>)
Converts text to glyph IDs.
public void GetGlyphs(ReadOnlySpan<int> codepoints, Span<ushort> glyphs);
Parameters
- codepoints
- ReadOnlySpan<Int32>
The Unicode codepoints to convert.
Applies to
GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding)
Converts text to glyph IDs.
public ushort[] GetGlyphs(ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding);
Parameters
- text
- ReadOnlySpan<Byte>
The text to convert.
- encoding
- SKTextEncoding
The SKTextEncoding of the text.
Returns
An array of glyph IDs.
Applies to
GetGlyphs(ReadOnlySpan<Int32>)
Converts text to glyph IDs.
public ushort[] GetGlyphs(ReadOnlySpan<int> codepoints);
Parameters
- codepoints
- ReadOnlySpan<Int32>
The Unicode codepoints to convert.
Returns
An array of glyph IDs.
Applies to
GetGlyphs(ReadOnlySpan<Char>)
Converts text to glyph IDs.
public ushort[] GetGlyphs(ReadOnlySpan<char> text);
Parameters
- text
- ReadOnlySpan<Char>
The text to convert.
Returns
An array of glyph IDs.
Applies to
GetGlyphs(ReadOnlySpan<Char>, Span<UInt16>)
Converts text to glyph IDs.
public void GetGlyphs(ReadOnlySpan<char> text, Span<ushort> glyphs);
Parameters
- text
- ReadOnlySpan<Char>
The text to convert.