편집

다음을 통해 공유


SKPaint.GetGlyphs Method

Definition

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

UInt16[]

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

Returns

UInt16[]

Applies to

GetGlyphs(ReadOnlySpan<Char>)

public ushort[] GetGlyphs (ReadOnlySpan<char> text);

Parameters

Returns

UInt16[]

Applies to

GetGlyphs(String)

Converts text into glyph indices.

public ushort[] GetGlyphs (string text);

Parameters

text
String

The text.

Returns

UInt16[]

Returns the glyph indices.

Remarks

This method does not check the text for valid character codes or valid glyph indices.

Applies to

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

UInt16[]

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

UInt16[]

Returns the glyph indices.

Remarks

This method does not check the text for valid character codes or valid glyph indices.

Applies to