---
title: "CTFontCollectionCopyQueryDescriptors(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontcollectioncopyquerydescriptors(_:)"
---

# CTFontCollectionCopyQueryDescriptors(_:)

Retrieves the array of descriptors for font matching.

## Declaration

```swift
func CTFontCollectionCopyQueryDescriptors(_ collection: CTFontCollection) -> CFArray?
```

## Parameters

- `collection`: The font collection reference.

## Return Value

Return Value A retained reference to the array of descriptors for querying (matching) the system font database. The return value is undefined if you create the collection with CTFontCollectionCreateFromAvailableFonts(_:).

## See Also

### Excluding and Including Font Descriptors

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