---
title: "fontDescriptors(inCollection:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/fontdescriptors(incollection:)"
---

# fontDescriptors(inCollection:)

Returns an array of the font descriptors in the specified collection.

## Declaration

```swift
func fontDescriptors(inCollection collectionNames: String) -> [Any]?
```

## Parameters

- `collectionNames`: The font collection for which to return descriptors.

## Return Value

Return Value The font descriptors.

## See Also

### Related Documentation

- [collectionNames](appkit/nsfontmanager/collectionnames.md)

### Methods

- [availableFontNames(matching:)](appkit/nsfontmanager/availablefontnames(matching:).md)
- [addCollection(_:options:)](appkit/nsfontmanager/addcollection(_:options:).md)
- [removeCollection(_:)](appkit/nsfontmanager/removecollection(_:).md)
- [addFontDescriptors(_:toCollection:)](appkit/nsfontmanager/addfontdescriptors(_:tocollection:).md)
- [removeFontDescriptor(_:fromCollection:)](appkit/nsfontmanager/removefontdescriptor(_:fromcollection:).md)
- [fontManager(_:willIncludeFont:)](objectivec/nsobject-swift.class/fontmanager(_:willincludefont:).md)
