SKTypeface.CharsToGlyphs Method

Definition

Overloads

CharsToGlyphs(String, UInt16[])
Obsolete.

Retrieve the corresponding glyph IDs of a string of characters.

CharsToGlyphs(IntPtr, Int32, SKEncoding, UInt16[])
Obsolete.

Retrieve the corresponding glyph IDs of a buffer containing character codes, of the specified encoding.

CharsToGlyphs(String, UInt16[])

Caution

Use GetGlyphs(string, out ushort[]) instead.

Retrieve the corresponding glyph IDs of a string of characters.

public int CharsToGlyphs (string chars, out ushort[] glyphs);
[System.Obsolete("Use GetGlyphs(string, out ushort[]) instead.")]
public int CharsToGlyphs (string chars, out ushort[] glyphs);

Parameters

chars
String

The string containing characters.

glyphs
UInt16[]

Destination for the corresponding glyph IDs for each character.

Returns

The number of number of continuous non-zero glyph IDs computed from the beginning of the character codes.

Attributes

Applies to

CharsToGlyphs(IntPtr, Int32, SKEncoding, UInt16[])

Caution

Use GetGlyphs(IntPtr, int, SKTextEncoding, out ushort[]) instead.

Retrieve the corresponding glyph IDs of a buffer containing character codes, of the specified encoding.

public int CharsToGlyphs (IntPtr str, int strlen, SkiaSharp.SKEncoding encoding, out ushort[] glyphs);
[System.Obsolete("Use GetGlyphs(IntPtr, int, SKTextEncoding, out ushort[]) instead.")]
public int CharsToGlyphs (IntPtr str, int strlen, SkiaSharp.SKEncoding encoding, out ushort[] glyphs);

Parameters

str
IntPtr

The buffer of character codes.

strlen
Int32

The length of the buffer.

encoding
SKEncoding

How the character codes are encoded.

glyphs
UInt16[]

Destination for the corresponding glyph IDs for each character.

Returns

The number of number of continuous non-zero glyph IDs computed from the beginning of the character codes.

Attributes

Applies to