Editar

Compartir a través de


SKTypeface.GetGlyphs Method

Definition

Overloads

GetGlyphs(ReadOnlySpan<Byte>, SKEncoding, UInt16[])
Obsolete.

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

GetGlyphs(IntPtr, Int32, SKTextEncoding)
GetGlyphs(IntPtr, Int32, SKEncoding)
Obsolete.

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

GetGlyphs(Byte[], SKEncoding, UInt16[])
Obsolete.

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

GetGlyphs(String, UInt16[])
Obsolete.

Retrieve the corresponding glyph IDs of a string of characters.

GetGlyphs(String, SKEncoding)
Obsolete.

Retrieve the corresponding glyph IDs of a string of characters, of the specified encoding.

GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding)
GetGlyphs(ReadOnlySpan<Byte>, SKEncoding)
Obsolete.

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

GetGlyphs(Byte[], SKEncoding)
Obsolete.

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

GetGlyphs(String)

Retrieve the corresponding glyph IDs of a string of characters.

GetGlyphs(ReadOnlySpan<Int32>)
GetGlyphs(ReadOnlySpan<Char>)
GetGlyphs(String, SKEncoding, UInt16[])
Obsolete.

Retrieve the corresponding glyph IDs of a string of characters.

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

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

GetGlyphs(ReadOnlySpan<Byte>, SKEncoding, UInt16[])

Caution

Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.

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

[System.Obsolete("Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
public int GetGlyphs (ReadOnlySpan<byte> text, SkiaSharp.SKEncoding encoding, out ushort[] glyphs);

Parameters

text
ReadOnlySpan<Byte>

The buffer of character codes.

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

GetGlyphs(IntPtr, Int32, SKTextEncoding)

public ushort[] GetGlyphs (IntPtr text, int length, SkiaSharp.SKTextEncoding encoding);

Parameters

text
IntPtr
length
Int32
encoding
SKTextEncoding

Returns

UInt16[]

Applies to

GetGlyphs(IntPtr, Int32, SKEncoding)

Caution

Use GetGlyphs(IntPtr, int, SKTextEncoding) instead.

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

[System.Obsolete("Use GetGlyphs(IntPtr, int, SKTextEncoding) instead.")]
public ushort[] GetGlyphs (IntPtr text, int length, SkiaSharp.SKEncoding encoding);

Parameters

text
IntPtr

The buffer of character codes.

length
Int32

The length of the buffer.

encoding
SKEncoding

How the character codes are encoded.

Returns

UInt16[]

Returns the corresponding glyph IDs for each character.

Attributes

Applies to

GetGlyphs(Byte[], SKEncoding, UInt16[])

Caution

Use GetGlyphs(byte[], SKTextEncoding) instead.

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

[System.Obsolete("Use GetGlyphs(byte[], SKTextEncoding) instead.")]
public int GetGlyphs (byte[] text, SkiaSharp.SKEncoding encoding, out ushort[] glyphs);

Parameters

text
Byte[]

The buffer of character codes.

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

GetGlyphs(String, UInt16[])

Caution

Use GetGlyphs(string) instead.

Retrieve the corresponding glyph IDs of a string of characters.

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

Parameters

text
String

The string of 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

GetGlyphs(String, SKEncoding)

Caution

Use GetGlyphs(string) instead.

Retrieve the corresponding glyph IDs of a string of characters, of the specified encoding.

[System.Obsolete("Use GetGlyphs(string) instead.")]
public ushort[] GetGlyphs (string text, SkiaSharp.SKEncoding encoding);

Parameters

text
String

The string of characters.

encoding
SKEncoding

How the characters are to be encoded.

Returns

UInt16[]

Returns the corresponding glyph IDs for each character.

Attributes

Applies to

GetGlyphs(ReadOnlySpan<Byte>, SKTextEncoding)

public ushort[] GetGlyphs (ReadOnlySpan<byte> text, SkiaSharp.SKTextEncoding encoding);

Parameters

encoding
SKTextEncoding

Returns

UInt16[]

Applies to

GetGlyphs(ReadOnlySpan<Byte>, SKEncoding)

Caution

Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.

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

[System.Obsolete("Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
public ushort[] GetGlyphs (ReadOnlySpan<byte> text, SkiaSharp.SKEncoding encoding);

Parameters

text
ReadOnlySpan<Byte>

The buffer of character codes.

encoding
SKEncoding

How the character codes are encoded.

Returns

UInt16[]

Returns the corresponding glyph IDs for each character.

Attributes

Applies to

GetGlyphs(Byte[], SKEncoding)

Caution

Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.

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

[System.Obsolete("Use GetGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
public ushort[] GetGlyphs (byte[] text, SkiaSharp.SKEncoding encoding);

Parameters

text
Byte[]

The buffer of character codes.

encoding
SKEncoding

How the character codes are encoded.

Returns

UInt16[]

Returns the corresponding glyph IDs for each character.

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<Int32>)

public ushort[] GetGlyphs (ReadOnlySpan<int> codepoints);

Parameters

codepoints
ReadOnlySpan<Int32>

Returns

UInt16[]

Applies to

GetGlyphs(ReadOnlySpan<Char>)

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

Parameters

Returns

UInt16[]

Applies to

GetGlyphs(String, SKEncoding, UInt16[])

Caution

Use GetGlyphs(string) instead.

Retrieve the corresponding glyph IDs of a string of characters.

[System.Obsolete("Use GetGlyphs(string) instead.")]
public int GetGlyphs (string text, SkiaSharp.SKEncoding encoding, out ushort[] glyphs);

Parameters

text
String

The string of characters.

encoding
SKEncoding

How the characters are to be 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

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

Caution

Use GetGlyphs(IntPtr, int, SKTextEncoding) instead.

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

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

Parameters

text
IntPtr

The buffer of character codes.

length
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