public CTFont(CTFontUIFontType uiType, float size, string language) { if (language == null) { throw ConstructorError.ArgumentNull(this, "language"); } using (CFString l = language) handle = CTFontCreateUIFontForLanguage(uiType, size, l.Handle); if (handle == IntPtr.Zero) { throw ConstructorError.Unknown(this); } }
static extern IntPtr CTFontCreateUIFontForLanguage(CTFontUIFontType uiType, float size, IntPtr language);