public FontFamily(string name, FontCollection fontCollection) { IntPtr handle = (fontCollection == null) ? IntPtr.Zero : fontCollection.nativeFontCollection; Status status = GDIPlus.GdipCreateFontFamilyFromNameA(name, handle, out nativeFontFamily); if (status != Status.Ok) { status = GDIPlus.GdipCreateFontFamilyFromNameW(name, handle, out nativeFontFamily); } GDIPlus.CheckStatus(status); }