---
title: "matchingDescriptors(forFamily:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontcollection/matchingdescriptors(forfamily:)"
---

# matchingDescriptors(forFamily:)

Returns an array of font descriptors matching the logical descriptors for the given font family.

## Declaration

```swift
func matchingDescriptors(forFamily family: String) -> [NSFontDescriptor]?
```

## Parameters

- `family`: The font family whose descriptors are matched.

## Return Value

Return Value The matchingDescriptors for the given family.

## See Also

### Getting the Font Descriptors

- [matchingDescriptors](appkit/nsfontcollection/matchingdescriptors.md)
- [matchingDescriptors(forFamily:options:)](appkit/nsfontcollection/matchingdescriptors(forfamily:options:).md)
- [matchingDescriptors(options:)](appkit/nsfontcollection/matchingdescriptors(options:).md)
- [NSFontCollectionMatchingOptionKey](appkit/nsfontcollectionmatchingoptionkey.md)
- [queryDescriptors](appkit/nsfontcollection/querydescriptors.md)
- [exclusionDescriptors](appkit/nsfontcollection/exclusiondescriptors.md)
