---
title: "CTFontCollectionSetExclusionDescriptors(_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontcollectionsetexclusiondescriptors(_:_:)"
---

# CTFontCollectionSetExclusionDescriptors(_:_:)

Replaces the array of descriptors to exclude from the match.

## Declaration

```swift
func CTFontCollectionSetExclusionDescriptors(_ collection: CTMutableFontCollection, _ descriptors: CFArray?)
```

## Parameters

- `collection`: The font collection reference.
- `descriptors`: An array of doc://com.apple.coretext/documentation/CoreText/CTFontDescriptor objects. This parameter can be NULL.

## See Also

### Excluding and Including Font Descriptors

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