CTFontManager.h
1 #import <CoreText/CTFontDescriptor.h> 2 #import <CoreGraphics/CoreGraphics.h> 3 4 CF_IMPLICIT_BRIDGING_ENABLED 5 6 typedef NS_ENUM(uint32_t, CTFontManagerScope) 7 { 8 kCTFontManagerScopeNone = 0, 9 kCTFontManagerScopeProcess = 1, 10 kCTFontManagerScopePersistent = 2, 11 kCTFontManagerScopeSession = 3, 12 kCTFontManagerScopeUser = 2, 13 }; 14 15 CORETEXT_EXPORT bool CTFontManagerRegisterGraphicsFont(CGFontRef font, CFErrorRef* error); 16 CORETEXT_EXPORT bool CTFontManagerUnregisterGraphicsFont(CGFontRef font, CFErrorRef *error); 17 18 CORETEXT_EXPORT CFArrayRef CTFontManagerCopyAvailableFontFamilyNames(void); 19 20 CORETEXT_EXPORT bool CTFontManagerRegisterFontsForURL(CFURLRef fontURL, CTFontManagerScope scope, CFErrorRef * error); 21 22 CF_IMPLICIT_BRIDGING_DISABLED