public ushort[] GetGlyphs(IntPtr text, int length, SKTextEncoding encoding) { using var font = ToFont(); return(font.GetGlyphs(text, length * encoding.GetCharacterByteSize(), encoding)); }
public bool ContainsGlyphs(IntPtr text, int length, SKTextEncoding encoding) => GetFont().ContainsGlyphs(text, length * encoding.GetCharacterByteSize(), encoding);
public int CountGlyphs(IntPtr str, int strLen, SKTextEncoding encoding) => GetFont().CountGlyphs(str, strLen * encoding.GetCharacterByteSize(), encoding);