Derived from | CFType |
Framework | ApplicationServices/CoreText |
Declared in | CTFontCollection.h |
The CTFontCollection opaque type represents a font collection, that is, a group of font descriptors taken together as a single object.
Font collections provide the capabilities of font enumeration, access to global and custom font collections, and access to the font descriptors comprising the collection.
CTFontCollectionCreateFromAvailableFonts
CTFontCollectionCreateWithFontDescriptors
CTFontCollectionCreateCopyWithFontDescriptors
CTFontCollectionCreateMatchingFontDescriptors
CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback
Returns a copy of the original collection augmented with the given new font descriptors.
CTFontCollectionRef CTFontCollectionCreateCopyWithFontDescriptors ( CTFontCollectionRef original, CFArrayRef descriptors, CFDictionaryRef options );
The original font collection reference.
An array of font descriptors to augment those of the original collection.
The options dictionary. For possible values, see “Constants.”
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.
CTFontCollection.h
Returns a new font collection containing all available fonts.
CTFontCollectionRef CTFontCollectionCreateFromAvailableFonts ( CFDictionaryRef options );
The options dictionary. For possible values, see “Constants.”
A new collection containing all fonts available to the current application.
CTFontCollection.h
Returns an array of font descriptors matching the collection.
CFArrayRef CTFontCollectionCreateMatchingFontDescriptors ( CTFontCollectionRef collection );
The font collection reference.
A retained reference to an array of normalized font descriptors matching the collection definition.
CTFontCollection.h
Returns the array of matching font descriptors sorted with the callback function.
CFArrayRef CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback ( CTFontCollectionRef collection, CTFontCollectionSortDescriptorsCallback sortCallback, void *refCon );
The collection reference.
The sorting callback function that defines the sort order.
Pointer to client data define context for the callback.
An array of font descriptors matching the criteria of the collection sorted by the results of the sorting callback function.
CTFontCollection.h
Returns a new font collection based on the given array of font descriptors.
CTFontCollectionRef CTFontCollectionCreateWithFontDescriptors ( CFArrayRef descriptors, CFDictionaryRef options );
An array of font descriptors.
The options dictionary. For possible values, see “Constants.”
A new font collection based on the provided font descriptors.
The contents of the returned collection are defined by matching the provided descriptors against all available font descriptors.
CTFontCollection.h
Returns the type identifier for Core Text font collection references.
CFTypeID CTFontCollectionGetTypeID ( void );
The identifier for the opaque type CTFontCollection.
CTFontCollection.h
A reference to a font collection.
typedef const struct __CTFontCollection * CTFontCollectionRef;
CTFontCollection.h
The collection sorting callback.
typedef CFComparisonResult (*CTFontCollectionSortDescriptorsCallback)(CTFontDescriptorRef first, CTFontDescriptorRef second, void *refCon);
This callback can be specified to obtain the matching font descriptors of a collection in sorted order. The callback function should return the comparison result of the first descriptor to the second descriptor.
CTFontCollection.h
An option key to specify filtering of duplicates.
const CFStringRef kCTFontCollectionRemoveDuplicatesOption;
kCTFontCollectionRemoveDuplicatesOption
Option key to specify filtering of duplicates.
Available in Mac OS X v10.5 and later.
Declared in CTFontCollection.h
.
Specify this option key in the options dictionary with a nonzero value to enable automatic filtering of duplicate font descriptors.
CTFontCollection.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-16)