Platforms to show: All Mac Windows Linux Cross-Platform

Back to CTFontCollectionMBS class.

CTFontCollectionMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
The private constructor.

CTFontCollectionMBS.CopyWithFontDescriptors(queryDescriptors() as CTFontDescriptorMBS, options as dictionary) as CTFontCollectionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a copy of the original collection augmented with the given new font descriptors.

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.ExclusionDescriptors as CTFontDescriptorMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the array of descriptors to exclude from the match.

CTFontCollectionMBS.FontAttribute(attributeName as string, options as Integer) as Dictionary()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns an array of font descriptor attribute values.

attributeName: The attribute to retrieve for each descriptor in the collection.
options: Options to alter the return value.

This function returns a retained reference to an array, or nil on error. The caller is responsible for releasing the array. The array contains one value for each descriptor, in the same order as the results from CreateMatchingDescriptors. When the kCTFontCollectionCopyUnique is set, duplicate values will be removed. When kCTFontCollectionCopyStandardSort is set, the values will be sorted in standard UI order.

See also:

CTFontCollectionMBS.FontAttribute(attributeNames() as string, options as Integer) as Dictionary()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns an array of dictionaries containing font descriptor attribute values.

This function returns a retained reference to a array, or nil on error. The caller is responsible for releasing the array. The array contains one value for each descriptor, in the same order as the results from CreateMatchingDescriptors. When the kCTFontCollectionCopyUnique is set, duplicate values will be removed. When kCTFontCollectionCopyStandardSort is set, the values will be sorted in standard UI order.

See also:

CTFontCollectionMBS.MatchingFontDescriptors(options as dictionary = nil) as CTFontDescriptorMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns an array of font descriptors matching the collection.

CTFontCollectionMBS.MatchingFontDescriptorsForFamily(familyName as string, options as dictionary = nil) as CTFontDescriptorMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns an array of font descriptors matching the specified family, one descriptor for each style in the collection.

CTFontCollectionMBS.MatchingFontDescriptorsSorted(tag as Variant) as CTFontDescriptorMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the array of matching font descriptors sorted with the callback function.

This function returns an array of font descriptors matching the criteria of the collection and sorted by the results of the sorting callback function.

Calls FontCollectionSortDescriptors in CoreTextMBS class.

CTFontCollectionMBS.MutableCopy as CTMutableFontCollectionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns a mutable copy of the original collection.

CTFontCollectionMBS.QueryDescriptors as CTFontDescriptorMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreText MBS MacCG Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the array of descriptors to match.

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...