public CTGlyphInfo(string glyphName, CTFont font, string baseString) { if (glyphName == null) throw ConstructorError.ArgumentNull (this, "glyphName"); if (font == null) throw ConstructorError.ArgumentNull (this, "font"); if (baseString == null) throw ConstructorError.ArgumentNull (this, "baseString"); using (var gn = new NSString (glyphName)) using (var bs = new NSString (baseString)) handle = CTGlyphInfoCreateWithGlyphName (gn.Handle, font.Handle, bs.Handle); if (handle == IntPtr.Zero) throw ConstructorError.Unknown (this); }
public void SetFont(CTFont font) { if (font == null) throw new ArgumentNullException ("font"); _Font = font.Handle; }