Beispiel #1
0
		public void SetFont (CGFont font)
		{
			CGContextSetFont (handle, font == null ? IntPtr.Zero : font.handle);
		}
Beispiel #2
0
 public void SetFont(CGFont font)
 {
     if (font == null)
         throw new ArgumentNullException ("font");
     _Font = font.Handle;
 }
Beispiel #3
0
 public static bool UnregisterGraphicsFont(CGFont font, out NSError error)
 {
     if (font == null)
         throw new ArgumentNullException ("font");
     IntPtr h = IntPtr.Zero;
     bool ret;
     try {
         ret = CTFontManagerUnregisterGraphicsFont (font.Handle, out h);
         if (ret)
             error = null;
         else
             error = new NSError (h);
     } finally {
         if (h != IntPtr.Zero)
             NSObject.DangerousRelease (h);
     }
     return ret;
 }