SKTypeface.CountGlyphs Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CountGlyphs(IntPtr, Int32, SKTextEncoding) | |
CountGlyphs(String, SKEncoding) |
Obsolete.
Returns the number of glyphs on the string. |
CountGlyphs(ReadOnlySpan<Byte>, SKTextEncoding) | |
CountGlyphs(ReadOnlySpan<Byte>, SKEncoding) |
Obsolete.
Returns the number of glyphs in the buffer. |
CountGlyphs(IntPtr, Int32, SKEncoding) |
Obsolete.
Obsolete.
Returns the number of glyphs on the specified buffer with the specified length and encoding. |
CountGlyphs(Byte[], SKEncoding) |
Obsolete.
Returns the number of glyphs in the buffer. |
CountGlyphs(String) |
Returns the number of glyphs in the string. |
CountGlyphs(Byte[], SKTextEncoding) | |
CountGlyphs(ReadOnlySpan<Char>) |
CountGlyphs(IntPtr, Int32, SKTextEncoding)
public int CountGlyphs (IntPtr str, int strLen, SkiaSharp.SKTextEncoding encoding);
Parameters
- str
- IntPtr
- strLen
- Int32
- encoding
- SKTextEncoding
Returns
Applies to
CountGlyphs(String, SKEncoding)
Caution
Use CountGlyphs(string) instead.
Returns the number of glyphs on the string.
[System.Obsolete("Use CountGlyphs(string) instead.")]
public int CountGlyphs (string str, SkiaSharp.SKEncoding encoding);
Parameters
- str
- String
The text containing characters.
- encoding
- SKEncoding
How the characters are to be encoded.
Returns
The number of number of continuous non-zero glyph IDs computed from the beginning of chars.
- Attributes
Applies to
CountGlyphs(ReadOnlySpan<Byte>, SKTextEncoding)
public int CountGlyphs (ReadOnlySpan<byte> str, SkiaSharp.SKTextEncoding encoding);
Parameters
- str
- ReadOnlySpan<Byte>
- encoding
- SKTextEncoding
Returns
Applies to
CountGlyphs(ReadOnlySpan<Byte>, SKEncoding)
Caution
Use CountGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.
Returns the number of glyphs in the buffer.
[System.Obsolete("Use CountGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
public int CountGlyphs (ReadOnlySpan<byte> str, SkiaSharp.SKEncoding encoding);
Parameters
- str
- ReadOnlySpan<Byte>
The buffer containing character codes.
- encoding
- SKEncoding
How the character are encoded.
Returns
The number of number of continuous non-zero glyph IDs computed from the beginning of the buffer.
- Attributes
Applies to
CountGlyphs(IntPtr, Int32, SKEncoding)
Caution
Use CountGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.
Caution
Use CountGlyphs(IntPtr, int, SKTextEncoding) instead.
Returns the number of glyphs on the specified buffer with the specified length and encoding.
public int CountGlyphs (IntPtr str, int strLen, SkiaSharp.SKEncoding encoding);
[System.Obsolete("Use CountGlyphs(ReadOnlySpan<byte>, SKTextEncoding) instead.")]
public int CountGlyphs (IntPtr str, int strLen, SkiaSharp.SKEncoding encoding);
[System.Obsolete("Use CountGlyphs(IntPtr, int, SKTextEncoding) instead.")]
public int CountGlyphs (IntPtr str, int strLen, SkiaSharp.SKEncoding encoding);
Parameters
- str
- IntPtr
The buffer of character codes.
- strLen
- Int32
The length of the buffer.
- encoding
- SKEncoding
How the characters are encoded.
Returns
The number of number of continuous non-zero glyph IDs computed from the beginning of chars.
- Attributes
Applies to
CountGlyphs(Byte[], SKEncoding)
Caution
Use CountGlyphs(byte[], SKTextEncoding) instead.
Returns the number of glyphs in the buffer.
[System.Obsolete("Use CountGlyphs(byte[], SKTextEncoding) instead.")]
public int CountGlyphs (byte[] str, SkiaSharp.SKEncoding encoding);
Parameters
- str
- Byte[]
The buffer containing character codes.
- encoding
- SKEncoding
How the character are encoded.
Returns
The number of number of continuous non-zero glyph IDs computed from the beginning of the buffer.
- Attributes
Applies to
CountGlyphs(String)
CountGlyphs(Byte[], SKTextEncoding)
public int CountGlyphs (byte[] str, SkiaSharp.SKTextEncoding encoding);
Parameters
- str
- Byte[]
- encoding
- SKTextEncoding
Returns
Applies to
CountGlyphs(ReadOnlySpan<Char>)
public int CountGlyphs (ReadOnlySpan<char> str);
Parameters
- str
- ReadOnlySpan<Char>
Returns
Applies to
SkiaSharp