typedef const struct CF_BRIDGED_TYPE(id) __CTFontCollection * CTFontCollectionRef;
typedef const struct CF_BRIDGED_TYPE(NSFontCollection) __CTFontCollection * CTFontCollectionRef;
typedef struct CF_BRIDGED_TYPE(id) __CTFontCollection * CTMutableFontCollectionRef;
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableFontCollection) __CTFontCollection * CTMutableFontCollectionRef;
CFTypeID CTFontCollectionGetTypeID( void ) CT_AVAILABLE(10_5, 3_2);
typedef CFComparisonResult (*CTFontCollectionSortDescriptorsCallback)(
CTFontDescriptorRef first,
CTFontDescriptorRef second,
void *refCon );
CT_EXPORT const CFStringRef kCTFontCollectionRemoveDuplicatesOption CT_AVAILABLE(10_5, 3_2);
CT_EXPORT const CFStringRef kCTFontCollectionIncludeDisabledFontsOption CT_AVAILABLE_MAC(10_7);
CT_EXPORT const CFStringRef kCTFontCollectionDisallowAutoActivationOption CT_AVAILABLE_MAC(10_7);
CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts(
CFDictionaryRef __nullable options ) CT_AVAILABLE(10_5, 3_2);
CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors(
CFArrayRef __nullable queryDescriptors,
CFDictionaryRef __nullable options ) CT_AVAILABLE(10_5, 3_2);
CTFontCollectionRef CTFontCollectionCreateCopyWithFontDescriptors(
CTFontCollectionRef original,
CFArrayRef __nullable queryDescriptors,
CFDictionaryRef __nullable options ) CT_AVAILABLE(10_5, 3_2);
CTMutableFontCollectionRef CTFontCollectionCreateMutableCopy(
CTFontCollectionRef original ) CT_AVAILABLE_MAC(10_7);
CFArrayRef __nullable CTFontCollectionCopyQueryDescriptors(
CTFontCollectionRef collection ) CT_AVAILABLE_MAC(10_7);
void CTFontCollectionSetQueryDescriptors(
CTMutableFontCollectionRef collection,
CFArrayRef __nullable descriptors ) CT_AVAILABLE_MAC(10_7);
CFArrayRef __nullable CTFontCollectionCopyExclusionDescriptors( CTFontCollectionRef collection ) CT_AVAILABLE_MAC(10_7);
void CTFontCollectionSetExclusionDescriptors(
CTMutableFontCollectionRef collection,
CFArrayRef __nullable descriptors ) CT_AVAILABLE_MAC(10_7);
CFArrayRef __nullable CTFontCollectionCreateMatchingFontDescriptors(
CTFontCollectionRef collection ) CT_AVAILABLE(10_5, 3_2);
CFArrayRef __nullable CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(
CTFontCollectionRef collection,
CTFontCollectionSortDescriptorsCallback __nullable sortCallback,
void * __nullable refCon ) CT_AVAILABLE(10_5, 3_2);
CFArrayRef __nullable CTFontCollectionCreateMatchingFontDescriptorsWithOptions(
CTFontCollectionRef collection,
CFDictionaryRef __nullable options ) CT_AVAILABLE_MAC(10_7);
CFArrayRef __nullable CTFontCollectionCreateMatchingFontDescriptorsForFamily(
CTFontCollectionRef collection,
CFStringRef familyName,
CFDictionaryRef __nullable options ) CT_AVAILABLE_MAC(10_7);
typedef CF_OPTIONS(uint32_t, CTFontCollectionCopyOptions) {
kCTFontCollectionCopyDefaultOptions = 0,
kCTFontCollectionCopyUnique = (1 << 0),
kCTFontCollectionCopyStandardSort = (1 << 1)
} CT_AVAILABLE_MAC(10_7);
CFArrayRef CTFontCollectionCopyFontAttribute(
CTFontCollectionRef collection,
CFStringRef attributeName,
CTFontCollectionCopyOptions options ) CT_AVAILABLE_MAC(10_7);
CFArrayRef CTFontCollectionCopyFontAttributes(
CTFontCollectionRef collection,
CFSetRef attributeNames,
CTFontCollectionCopyOptions options ) CT_AVAILABLE_MAC(10_7);
CTFontCollection
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...