Edit

SKFont.GetGlyphs Method

Definition

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(String, Span<UInt16>)

Converts text to glyph IDs.

public void GetGlyphs(string text, Span<ushort> glyphs);

Parameters

text
String

The text to convert.

glyphs
Span<UInt16>

The span to receive the glyph IDs.

Applies to

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.

glyphs
Span<UInt16>

The span to receive the glyph IDs.

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.

glyphs
Span<UInt16>

The span to receive the glyph IDs.

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

UInt16[]

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.

glyphs
Span<UInt16>

The span to receive the glyph IDs.

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

UInt16[]

An array of glyph IDs.

Applies to

GetGlyphs(String)

Converts text to glyph IDs.

public ushort[] GetGlyphs(string text);

Parameters

text
String

The text to convert.

Returns

UInt16[]

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

UInt16[]

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

UInt16[]

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.

glyphs
Span<UInt16>

The span to receive the glyph IDs.

Applies to