示例#1
0
文件: Font.cs 项目: yvt/ngspades
 public unsafe Font(Span <byte> bytes)
 {
     fixed(byte *ptr = &bytes[0])
     {
         nativeObject = EngineInstance.NativeEngine.FontFactory
                        .CreateFont((IntPtr)ptr, bytes.Length);
     }
 }
示例#2
0
文件: Font.cs 项目: yvt/ngspades
 internal Font(INgsPFFont nativeObject)
 {
     this.nativeObject = nativeObject;
 }