Edit

SKTypeface.CountGlyphs Method

Definition

Overloads

Name Description
CountGlyphs(ReadOnlySpan<Char>)
Obsolete.

Returns the number of glyphs in the text.

CountGlyphs(String)
Obsolete.

Returns the number of glyphs in the string.

CountGlyphs(Byte[], SKTextEncoding)
Obsolete.

Returns the number of glyphs in the buffer.

CountGlyphs(ReadOnlySpan<Byte>, SKTextEncoding)
Obsolete.

Returns the number of glyphs in the buffer.

CountGlyphs(IntPtr, Int32, SKTextEncoding)
Obsolete.

Returns the number of glyphs in the specified buffer.

CountGlyphs(ReadOnlySpan<Char>)

Caution

Use SKFont directly instead.

Returns the number of glyphs in the text.

[System.Obsolete("Use SKFont directly instead.")]
public int CountGlyphs(ReadOnlySpan<char> str);

Parameters

str
ReadOnlySpan<Char>

The text containing characters.

Returns

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

Attributes

Applies to

CountGlyphs(String)

Caution

Use SKFont directly instead.

Returns the number of glyphs in the string.

[System.Obsolete("Use SKFont directly instead.")]
public int CountGlyphs(string str);

Parameters

str
String

The string containing characters.

Returns

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

Attributes

Applies to

CountGlyphs(Byte[], SKTextEncoding)

Caution

Use SKFont directly instead.

Returns the number of glyphs in the buffer.

[System.Obsolete("Use SKFont directly instead.")]
public int CountGlyphs(byte[] str, SkiaSharp.SKTextEncoding encoding);

Parameters

str
Byte[]

The buffer containing character codes.

encoding
SKTextEncoding

The encoding of the character codes.

Returns

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

Attributes

Applies to

CountGlyphs(ReadOnlySpan<Byte>, SKTextEncoding)

Caution

Use SKFont directly instead.

Returns the number of glyphs in the buffer.

[System.Obsolete("Use SKFont directly instead.")]
public int CountGlyphs(ReadOnlySpan<byte> str, SkiaSharp.SKTextEncoding encoding);

Parameters

str
ReadOnlySpan<Byte>

The buffer containing character codes.

encoding
SKTextEncoding

The encoding of the character codes.

Returns

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

Attributes

Applies to

CountGlyphs(IntPtr, Int32, SKTextEncoding)

Caution

Use SKFont directly instead.

Returns the number of glyphs in the specified buffer.

[System.Obsolete("Use SKFont directly instead.")]
public int CountGlyphs(IntPtr str, int strLen, SkiaSharp.SKTextEncoding encoding);

Parameters

str
IntPtr

The pointer to the buffer containing character codes.

strLen
Int32

The length of the buffer in bytes.

encoding
SKTextEncoding

The encoding of the character codes.

Returns

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

Attributes

Applies to