Edit

SKTypeface.GetGlyphs Method

Definition

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

UInt16[]

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

UInt16[]

The corresponding glyph IDs for each codepoint.

Attributes

Applies to

GetGlyphs(String)

Retrieve the corresponding glyph IDs of a string of characters.

public ushort[] GetGlyphs(string text);

Parameters

text
String

The string of characters.

Returns

UInt16[]

Returns the corresponding glyph IDs for each character.

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

UInt16[]

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

UInt16[]

The corresponding glyph IDs for each character.

Applies to