コード例 #1
0
 public CTFont(CTFontDescriptor descriptor, float size, CTFontOptions options, ref CGAffineTransform matrix)
 {
     if (descriptor == null)
     {
         throw ConstructorError.ArgumentNull(this, "descriptor");
     }
     handle = CTFontCreateWithFontDescriptorAndOptions(descriptor.Handle,
                                                       size, ref matrix, options);
     if (handle == IntPtr.Zero)
     {
         throw ConstructorError.Unknown(this);
     }
 }
コード例 #2
0
 public CTFont(string name, float size, ref CGAffineTransform matrix, CTFontOptions options)
 {
     if (name == null)
     {
         throw ConstructorError.ArgumentNull(this, "name");
     }
     using (CFString n = name)
         handle = CTFontCreateWithNameAndOptions(n.Handle, size, ref matrix, options);
     if (handle == IntPtr.Zero)
     {
         throw ConstructorError.Unknown(this);
     }
 }
コード例 #3
0
 static extern IntPtr CTFontCreateWithFontDescriptorAndOptions(IntPtr descriptor, float size, ref CGAffineTransform matrix, CTFontOptions options);
コード例 #4
0
 static extern IntPtr CTFontCreateWithFontDescriptorAndOptions(IntPtr descriptor, float size, IntPtr matrix, CTFontOptions options);
コード例 #5
0
 static extern IntPtr CTFontCreateWithNameAndOptions(IntPtr name, float size, ref CGAffineTransform matrix, CTFontOptions options);
コード例 #6
0
 static extern IntPtr CTFontCreateWithNameAndOptions(IntPtr name, float size, IntPtr matrix, CTFontOptions options);