CTFontCollection

A font collection.

Overview

A font collection represents 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.

Topics

Creating Font Collections

Getting the Type Identifier

func CTFontCollectionGetTypeID() -> CFTypeID

Returns the type identifier for Core Text font collection references.

Data Types

class CTFontCollection

A reference to a font collection.

class CTMutableFontCollection

A reference to a mutable font collection.

Constants

kCTFontCollectionRemoveDuplicatesOption

An option key to specify filtering of duplicates.

struct CTFontCollectionCopyOptions

Option bits for use with CTFontCollectionCopyFontAttribute(s).

See Also

Opaque Types

CTFont

A font object.

CTFramesetter

Generate text frames.

CTGlyphInfo

Override a font's specified mapping from Unicode to the glyph ID.

CTLine

A line of text.

CTParagraphStyle

Paragraph or ruler attributes in an attributed string.

CTTextTab

A tab in a paragraph style, storing an alignment type and location.

CTTypesetter

A typesetter which performs line layout.