Platforms to show: All Mac Windows Linux Cross-Platform
Back to CTFontCollectionMBS class.
CTFontCollectionMBS.Available as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns true in OS X v10.5 and later.
Collection Matching Options
CTFontCollectionMBS.kCTFontCollectionDisallowAutoActivationOption as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Option key to avoid auto-activating fonts.
Specify this option key in the options dictionary with a non-zero value to disallow searches for missing fonts (font descriptors returning no results).
CTFontCollectionMBS.kCTFontCollectionIncludeDisabledFontsOption as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Specify this option key in the options dictionary with a non-zero value to enable matching of disabled fonts. You can pass font descriptors specifying disabled fonts to CTFontManagerEnableFontDescriptors, but you cannot use such a font descriptor to query font attributes from the system database or create a CTFontMBS.
CTFontCollectionMBS.kCTFontCollectionRemoveDuplicatesOption as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Option key to specify filtering of duplicates.
CTFontCollectionMBS.CreateCopyWithFontDescriptors(original as CTFontCollectionMBS, queryDescriptors() as CTFontDescriptorMBS, options as dictionary) as CTFontCollectionMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
queryDescriptors: An array of font descriptors to augment those of the original collection.
options: The options dictionary.
Returns a copy of the original font collection augmented by the new font descriptors and options.
The new font descriptors are merged with the existing descriptors to create a single set.
Available in OS X v10.5 and later.
CTFontCollectionMBS.CreateFromAvailableFonts(options as Dictionary) as CTFontCollectionMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
options: The options dictionary.
Returns a new collection containing all fonts available to the current application.
CTFontCollectionMBS.CreateWithFontDescriptors(queryDescriptors() as CTFontDescriptorMBS, options as dictionary) as CTFontCollectionMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
An array of font descriptors to use for matching.
options: The options dictionary. See constant option keys.
Returns this function creates a new collection based on the provided font descriptors. The contents of this collection is defined by matching the provided descriptors against all available font descriptors.
The items on this page are in the following plugins: MBS MacCG Plugin.