<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontCollection/matchingDescriptors(forFamily:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFontCollection(im)matchingDescriptorsForFamily:options:"
  },
  "title" : "matchingDescriptors(forFamily:options:)"
}
-->

# matchingDescriptors(forFamily:options:)

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

```
func matchingDescriptors(forFamily family: String, options: [NSFontCollectionMatchingOptionKey : NSNumber]? = nil) -> [NSFontDescriptor]?
```

## Parameters

`family`

The font family whose descriptors are matched.

`options`

A dictionary containing any combination of the `Matching Descriptors Options` keys or `nil`.

## Return Value

The [`matchingDescriptors`](/documentation/AppKit/NSFontCollection/matchingDescriptors) for the given family and options.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)