CTFontCollection

The CTFontCollection opaque type represents a font collection, that is, a group of font descriptors taken together as a single object.

Overview

Font collections provide the capabilities of font enumeration, access to global and custom font collections, and access to the font descriptors comprising the collection.

Symbols

Creating Font Collections

func CTFontCollectionCreateFromAvailableFonts(CFDictionary?)

Returns a new font collection containing all available fonts.

func CTFontCollectionCreateWithFontDescriptors(CFArray?, CFDictionary?)

Returns a new font collection based on the given array of font descriptors.

func CTFontCollectionCreateCopyWithFontDescriptors(CTFontCollection, CFArray?, CFDictionary?)

Returns a copy of the original collection augmented with the given new font descriptors.

Getting Font Descriptors

Getting the Type Identifier

func CTFontCollectionGetTypeID()

Returns the type identifier for Core Text font collection references.

Data Types

CTFontCollection

A reference to a font collection.

CTMutableFontCollection

A reference to a mutable font collection.

Constants

kCTFontCollectionRemoveDuplicatesOption

An option key to specify filtering of duplicates.

CTFontCollectionCopyOptions