---
title: CTFontCollection
framework: coretext
role: symbol
role_heading: Class
path: coretext/ctfontcollection
---

# CTFontCollection

A font collection.

## Declaration

```swift
class CTFontCollection
```

## Overview

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

- [CTFontCollectionCreateFromAvailableFonts(_:)](coretext/ctfontcollectioncreatefromavailablefonts(_:).md)
- [CTFontCollectionCreateWithFontDescriptors(_:_:)](coretext/ctfontcollectioncreatewithfontdescriptors(_:_:).md)
- [CTFontCollectionCreateCopyWithFontDescriptors(_:_:_:)](coretext/ctfontcollectioncreatecopywithfontdescriptors(_:_:_:).md)
- [CTFontCollectionCreateMutableCopy(_:)](coretext/ctfontcollectioncreatemutablecopy(_:).md)

### Excluding and Including Font Descriptors

- [CTFontCollectionCopyExclusionDescriptors(_:)](coretext/ctfontcollectioncopyexclusiondescriptors(_:).md)
- [CTFontCollectionCopyQueryDescriptors(_:)](coretext/ctfontcollectioncopyquerydescriptors(_:).md)
- [CTFontCollectionSetExclusionDescriptors(_:_:)](coretext/ctfontcollectionsetexclusiondescriptors(_:_:).md)
- [CTFontCollectionSetQueryDescriptors(_:_:)](coretext/ctfontcollectionsetquerydescriptors(_:_:).md)

### Getting Font Descriptors

- [CTFontCollectionCreateMatchingFontDescriptors(_:)](coretext/ctfontcollectioncreatematchingfontdescriptors(_:).md)
- [CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:)](coretext/ctfontcollectioncreatematchingfontdescriptorswithoptions(_:_:).md)
- [CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(_:_:_:)](coretext/ctfontcollectioncreatematchingfontdescriptorssortedwithcallback(_:_:_:).md)
- [CTFontCollectionCreateMatchingFontDescriptorsForFamily(_:_:_:)](coretext/ctfontcollectioncreatematchingfontdescriptorsforfamily(_:_:_:).md)
- [CTFontCollectionSortDescriptorsCallback](coretext/ctfontcollectionsortdescriptorscallback.md)

### Get Font Descriptor Attributes

- [CTFontCollectionCopyFontAttribute(_:_:_:)](coretext/ctfontcollectioncopyfontattribute(_:_:_:).md)
- [CTFontCollectionCopyFontAttributes(_:_:_:)](coretext/ctfontcollectioncopyfontattributes(_:_:_:).md)

### Getting the Type Identifier

- [CTFontCollectionGetTypeID()](coretext/ctfontcollectiongettypeid().md)

### Data Types

- [CTMutableFontCollection](coretext/ctmutablefontcollection.md)

### Constants

- [kCTFontCollectionRemoveDuplicatesOption](coretext/kctfontcollectionremoveduplicatesoption.md)
- [CTFontCollectionCopyOptions](coretext/ctfontcollectioncopyoptions.md)

## Relationships

### Inherited By

- [CTMutableFontCollection](coretext/ctmutablefontcollection.md)

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Opaque Types

- [CTFont](coretext/ctfont.md)
- [CTFontDescriptor](coretext/ctfontdescriptor.md)
- [CTFrame](coretext/ctframe.md)
- [CTFramesetter](coretext/ctframesetter.md)
- [CTGlyphInfo](coretext/ctglyphinfo.md)
- [CTLine](coretext/ctline.md)
- [CTParagraphStyle](coretext/ctparagraphstyle.md)
- [CTRun](coretext/ctrun.md)
- [CTRunDelegate](coretext/ctrundelegate.md)
- [CTTextTab](coretext/cttexttab.md)
- [CTTypesetter](coretext/cttypesetter.md)
