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