Platforms to show: All Mac Windows Linux Cross-Platform
CTFontCollectionMBS class
Super class: CFObjectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Font collections provide the capabilities of font enumeration, access to global and custom font collections, and access to the font descriptors comprising the collection.
Subclass of the CFObjectMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 10 methods
- method Constructor Private
- method CopyWithFontDescriptors(queryDescriptors() as CTFontDescriptorMBS, options as dictionary) as CTFontCollectionMBS
- method ExclusionDescriptors as CTFontDescriptorMBS()
- method FontAttribute(attributeName as string, options as Integer) as Dictionary()
- method FontAttribute(attributeNames() as string, options as Integer) as Dictionary()
- method MatchingFontDescriptors(options as dictionary = nil) as CTFontDescriptorMBS()
- method MatchingFontDescriptorsForFamily(familyName as string, options as dictionary = nil) as CTFontDescriptorMBS()
- method MatchingFontDescriptorsSorted(tag as Variant) as CTFontDescriptorMBS()
- method MutableCopy as CTMutableFontCollectionMBS
- method QueryDescriptors as CTFontDescriptorMBS()
- 7 shared methods
- shared method Available as boolean
- shared method CreateCopyWithFontDescriptors(original as CTFontCollectionMBS, queryDescriptors() as CTFontDescriptorMBS, options as dictionary) as CTFontCollectionMBS
- shared method CreateFromAvailableFonts(options as Dictionary) as CTFontCollectionMBS
- shared method CreateWithFontDescriptors(queryDescriptors() as CTFontDescriptorMBS, options as dictionary) as CTFontCollectionMBS
- shared method kCTFontCollectionDisallowAutoActivationOption as string
- shared method kCTFontCollectionIncludeDisabledFontsOption as string
- shared method kCTFontCollectionRemoveDuplicatesOption as string
- 3 constants
Bulk attribute access
Constant | Value | Description |
---|---|---|
kCTFontCollectionCopyDefaultOptions | 0 |
Passing this option indicates that defaults are to be used. Available in OS X v10.7 and later. |
kCTFontCollectionCopyStandardSort | 2 | Passing this option indicates that the return values should be sorted in standard UI order, suitable for display to the user. This is the same sorting behavior used by NSFontPanel and Font Book. more |
kCTFontCollectionCopyUnique | 1 |
Passing this option indicates that duplicate values should be removed from the results. Available in OS X v10.7 and later. |
Super class CFObjectMBS
- 5 properties
- property Handle as Integer
- property Hash as Integer
- property Lasterror as Integer
- property Type as Integer
- property TypeDescription as String
- 9 methods
- method close
- method DeepCopy as CFObjectMBS
- method EncodedData as MemoryBlock
- method Equal(o as CFObjectMBS) as boolean
- method ReleaseObject
- method RetainCount as Integer
- method RetainObject
- method XML as CFBinaryDataMBS
- method XMLdata as String
- shared method NewCFObject(handle as Integer) as CFObjectMBS
Sub classes:
Blog Entries
The items on this page are in the following plugins: MBS MacCF Plugin, MBS MacCG Plugin.
CSTransformMBS - CTFontDescriptorMBS