CFArrayRef CTFontManagerCopyAvailablePostScriptNames( void ) CT_AVAILABLE(10_6, 10_0);
CFArrayRef CTFontManagerCopyAvailableFontFamilyNames( void ) CT_AVAILABLE(10_6, 10_0);
CFArrayRef CTFontManagerCopyAvailableFontURLs( void ) CT_AVAILABLE_MAC(10_6);
CFComparisonResult CTFontManagerCompareFontFamilyNames(
const void * family1,
const void * family2,
void * __nullable context ) CT_AVAILABLE_MAC(10_6);
CFArrayRef __nullable CTFontManagerCreateFontDescriptorsFromURL(
CFURLRef fileURL ) CT_AVAILABLE(10_6, 7_0);
CTFontDescriptorRef __nullable CTFontManagerCreateFontDescriptorFromData(
CFDataRef data ) CT_AVAILABLE(10_7, 7_0);
typedef CF_ENUM(uint32_t, CTFontManagerScope) {
kCTFontManagerScopeNone = 0,
kCTFontManagerScopeProcess = 1,
kCTFontManagerScopeUser = 2, /* not supported in iOS */
kCTFontManagerScopeSession = 3 /* not supported in iOS */
};
bool CTFontManagerRegisterFontsForURL(
CFURLRef fontURL,
CTFontManagerScope scope,
CFErrorRef * error ) CT_AVAILABLE(10_6, 4_1);
bool CTFontManagerUnregisterFontsForURL(
CFURLRef fontURL,
CTFontManagerScope scope,
CFErrorRef * error ) CT_AVAILABLE(10_6, 4_1);
bool CTFontManagerRegisterGraphicsFont(
CGFontRef font,
CFErrorRef * error ) CT_AVAILABLE(10_8, 4_1);
bool CTFontManagerUnregisterGraphicsFont(
CGFontRef font,
CFErrorRef * error ) CT_AVAILABLE(10_8, 4_1);
bool CTFontManagerRegisterFontsForURLs(
CFArrayRef fontURLs,
CTFontManagerScope scope,
CFArrayRef __nullable * __nullable errors ) CT_AVAILABLE(10_6, 4_1);
bool CTFontManagerUnregisterFontsForURLs(
CFArrayRef fontURLs,
CTFontManagerScope scope,
CFArrayRef __nullable * __nullable errors ) CT_AVAILABLE(10_6, 4_1);
void CTFontManagerEnableFontDescriptors(
CFArrayRef descriptors,
bool enable ) CT_AVAILABLE_MAC(10_6);
CTFontManagerScope CTFontManagerGetScopeForURL(
CFURLRef fontURL ) CT_AVAILABLE_MAC(10_6);
bool CTFontManagerIsSupportedFont(
CFURLRef fontURL ) CT_AVAILABLE_MAC(10_6);
CFRunLoopSourceRef __nullable CTFontManagerCreateFontRequestRunLoopSource(
CFIndex sourceOrder,
CFArrayRef (^createMatchesCallback)(CFDictionaryRef requestAttributes, pid_t requestingProcess)) CT_AVAILABLE_MAC(10_6);
CT_EXPORT const CFStringRef kCTFontManagerBundleIdentifier CT_AVAILABLE_MAC(10_6);
typedef CF_ENUM(uint32_t, CTFontManagerAutoActivationSetting) {
kCTFontManagerAutoActivationDefault = 0,
kCTFontManagerAutoActivationDisabled = 1,
kCTFontManagerAutoActivationEnabled = 2,
kCTFontManagerAutoActivationPromptUser = 3
};
void CTFontManagerSetAutoActivationSetting(
CFStringRef __nullable bundleIdentifier,
CTFontManagerAutoActivationSetting setting ) CT_AVAILABLE_MAC(10_6);
CTFontManagerAutoActivationSetting CTFontManagerGetAutoActivationSetting(
CFStringRef __nullable bundleIdentifier ) CT_AVAILABLE_MAC(10_6);
CT_EXPORT const CFStringRef kCTFontManagerRegisteredFontsChangedNotification CT_AVAILABLE(10_6, 7_0);
CTFontManager
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。