CTFontDescriptor.h
1 #import <CoreFoundation/CFString.h> 2 #import <CoreText/CoreTextExport.h> 3 #import <CoreText/CTFontTraits.h> 4 5 CORETEXT_EXPORT const CFStringRef kCTFontURLAttribute; 6 CORETEXT_EXPORT const CFStringRef kCTFontNameAttribute; 7 CORETEXT_EXPORT const CFStringRef kCTFontDisplayNameAttribute; 8 CORETEXT_EXPORT const CFStringRef kCTFontFamilyNameAttribute; 9 CORETEXT_EXPORT const CFStringRef kCTFontStyleNameAttribute; 10 CORETEXT_EXPORT const CFStringRef kCTFontTraitsAttribute; 11 CORETEXT_EXPORT const CFStringRef kCTFontVariationAttribute; 12 CORETEXT_EXPORT const CFStringRef kCTFontSizeAttribute; 13 CORETEXT_EXPORT const CFStringRef kCTFontMatrixAttribute; 14 CORETEXT_EXPORT const CFStringRef kCTFontCascadeListAttribute; 15 CORETEXT_EXPORT const CFStringRef kCTFontCharacterSetAttribute; 16 CORETEXT_EXPORT const CFStringRef kCTFontLanguagesAttribute; 17 CORETEXT_EXPORT const CFStringRef kCTFontBaselineAdjustAttribute; 18 CORETEXT_EXPORT const CFStringRef kCTFontMacintoshEncodingsAttribute; 19 CORETEXT_EXPORT const CFStringRef kCTFontFeaturesAttribute; 20 CORETEXT_EXPORT const CFStringRef kCTFontFeatureSettingsAttribute; 21 CORETEXT_EXPORT const CFStringRef kCTFontFixedAdvanceAttribute; 22 CORETEXT_EXPORT const CFStringRef kCTFontOrientationAttribute; 23 CORETEXT_EXPORT const CFStringRef kCTFontEnabledAttribute; 24 CORETEXT_EXPORT const CFStringRef kCTFontFormatAttribute; 25 CORETEXT_EXPORT const CFStringRef kCTFontRegistrationScopeAttribute; 26 CORETEXT_EXPORT const CFStringRef kCTFontPriorityAttribute; 27 28 CF_IMPLICIT_BRIDGING_ENABLED 29 30 typedef struct __CTFontDescriptor* CTFontDescriptorRef; 31 32 typedef enum CTFontOrientation : uint32_t { 33 kCTFontOrientationDefault = 0, 34 kCTFontDefaultOrientation = 0, // Deprecated 35 kCTFontOrientationHorizontal = 1, 36 kCTFontHorizontalOrientation = 1, // Deprecated 37 kCTFontOrientationVertical = 2, 38 kCTFontVerticalOrientation = 2, // Deprecated 39 } CTFontOrientation; 40 41 CORETEXT_EXPORT CFTypeRef CTFontDescriptorCopyAttribute(CTFontDescriptorRef descriptor, CFStringRef attribute); 42 43 CF_IMPLICIT_BRIDGING_DISABLED