public void SetFont (CGFont font) { CGContextSetFont (handle, font == null ? IntPtr.Zero : font.handle); }
public void SetFont(CGFont font) { if (font == null) throw new ArgumentNullException ("font"); _Font = font.Handle; }
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; }