示例#1
0
 public ushort[] GetGlyphs(IntPtr text, int length, SKEncoding encoding) =>
 GetGlyphs(text, length, encoding.ToTextEncoding());
示例#2
0
 public ushort[] GetGlyphs(byte[] text, SKEncoding encoding) =>
 GetGlyphs(text.AsSpan(), encoding.ToTextEncoding());
示例#3
0
 public ushort[] GetGlyphs(ReadOnlySpan <byte> text, SKEncoding encoding) =>
 GetGlyphs(text, encoding.ToTextEncoding());
示例#4
0
 public int CountGlyphs(IntPtr str, int strLen, SKEncoding encoding) =>
 GetFont().CountGlyphs(str, strLen, encoding.ToTextEncoding());
示例#5
0
 public int CountGlyphs(ReadOnlySpan <byte> str, SKEncoding encoding) =>
 GetFont().CountGlyphs(str, encoding.ToTextEncoding());
示例#6
0
 public int CountGlyphs(byte[] str, SKEncoding encoding) =>
 GetFont().CountGlyphs(str, encoding.ToTextEncoding());
示例#7
0
文件: Util.cs 项目: squens/SkiaSharp
 public static byte[] GetEncodedText(string text, SKEncoding encoding) =>
 GetEncodedText(text.AsSpan(), encoding.ToTextEncoding());
示例#8
0
 public int CountGlyphs(byte[] str, SKEncoding encoding) =>
 CountGlyphs(str.AsSpan(), encoding.ToTextEncoding());