---
title: "CTFontCollectionSetQueryDescriptors(_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontcollectionsetquerydescriptors(_:_:)"
---

# CTFontCollectionSetQueryDescriptors(_:_:)

Replaces the array of descriptors for font matching.

## Declaration

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

## Parameters

- `collection`: The font collection reference.
- `descriptors`: An array of doc://com.apple.coretext/documentation/CoreText/CTFontDescriptor objects. Passing in NULL represents an empty collection, which sets the matching descriptors to NULL.

## See Also

### Excluding and Including Font Descriptors

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