<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@T@CTFontCollectionRef"
  },
  "title" : "CTFontCollection"
}
-->

# CTFontCollection

A font collection.

```
class CTFontCollection
```

## 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(_:)`](/documentation/CoreText/CTFontCollectionCreateFromAvailableFonts(_:))

Returns a new font collection containing all available fonts.

[`CTFontCollectionCreateWithFontDescriptors(_:_:)`](/documentation/CoreText/CTFontCollectionCreateWithFontDescriptors(_:_:))

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

[`CTFontCollectionCreateCopyWithFontDescriptors(_:_:_:)`](/documentation/CoreText/CTFontCollectionCreateCopyWithFontDescriptors(_:_:_:))

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

[`CTFontCollectionCreateMutableCopy(_:)`](/documentation/CoreText/CTFontCollectionCreateMutableCopy(_:))

Creates a mutable copy of the original collection.

### Excluding and Including Font Descriptors

[`CTFontCollectionCopyExclusionDescriptors(_:)`](/documentation/CoreText/CTFontCollectionCopyExclusionDescriptors(_:))

Retrieves the array of descriptors to exclude from the match.

[`CTFontCollectionCopyQueryDescriptors(_:)`](/documentation/CoreText/CTFontCollectionCopyQueryDescriptors(_:))

Retrieves the array of descriptors for font matching.

[`CTFontCollectionSetExclusionDescriptors(_:_:)`](/documentation/CoreText/CTFontCollectionSetExclusionDescriptors(_:_:))

Replaces the array of descriptors to exclude from the match.

[`CTFontCollectionSetQueryDescriptors(_:_:)`](/documentation/CoreText/CTFontCollectionSetQueryDescriptors(_:_:))

Replaces the array of descriptors for font matching.

### Getting Font Descriptors

[`CTFontCollectionCreateMatchingFontDescriptors(_:)`](/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptors(_:))

Returns an array of font descriptors matching the collection.

[`CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:)`](/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptorsWithOptions(_:_:))

Creates an array of font descriptors that match the specified collection.

[`CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(_:_:_:)`](/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptorsSortedWithCallback(_:_:_:))

Returns the array of matching font descriptors sorted with the callback function.

[`CTFontCollectionCreateMatchingFontDescriptorsForFamily(_:_:_:)`](/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptorsForFamily(_:_:_:))

Retrieves an array of font descriptors that match the specified family, one descriptor for each style in the collection.

[`CTFontCollectionSortDescriptorsCallback`](/documentation/CoreText/CTFontCollectionSortDescriptorsCallback)

The collection sorting callback type.

### Get Font Descriptor Attributes

[`CTFontCollectionCopyFontAttribute(_:_:_:)`](/documentation/CoreText/CTFontCollectionCopyFontAttribute(_:_:_:))

Retrieves an array of font descriptor attribute values.

[`CTFontCollectionCopyFontAttributes(_:_:_:)`](/documentation/CoreText/CTFontCollectionCopyFontAttributes(_:_:_:))

Retrieves an array of dictionaries containing font descriptor attribute values.

### Getting the Type Identifier

[`CTFontCollectionGetTypeID()`](/documentation/CoreText/CTFontCollectionGetTypeID())

Returns the type identifier for Core Text font collection references.

### Data Types

[`CTMutableFontCollection`](/documentation/CoreText/CTMutableFontCollection)

A reference to a mutable font collection.

### Constants

[`kCTFontCollectionRemoveDuplicatesOption`](/documentation/CoreText/kCTFontCollectionRemoveDuplicatesOption)

[`CTFontCollectionCopyOptions`](/documentation/CoreText/CTFontCollectionCopyOptions)

Option bits for use with CTFontCollectionCopyFontAttribute(s).



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)