<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontCollectionMatchingOptionKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@T@NSFontCollectionMatchingOptionKey"
  },
  "title" : "NSFontCollectionMatchingOptionKey"
}
-->

# NSFontCollectionMatchingOptionKey

These constants are used by the [`matchingDescriptors(options:)`](/documentation/AppKit/NSFontCollection/matchingDescriptors(options:)) and [`matchingDescriptors(forFamily:options:)`](/documentation/AppKit/NSFontCollection/matchingDescriptors(forFamily:options:)) options dictionary parameters.

```
struct NSFontCollectionMatchingOptionKey
```

## Topics

### Type Properties

[`static let includeDisabledFontsOption: NSFontCollectionMatchingOptionKey`](/documentation/AppKit/NSFontCollectionMatchingOptionKey/includeDisabledFontsOption)

An NSNumber object containing a Boolean value specifying whether disabled fonts should be included in the list of matching descriptors.

[`static let removeDuplicatesOption: NSFontCollectionMatchingOptionKey`](/documentation/AppKit/NSFontCollectionMatchingOptionKey/removeDuplicatesOption)

An NSNumber object containing a Boolean value controlling whether more than one copy of a font with the same PostScript name should be included in the list of matching descriptors.

[`static let disallowAutoActivationOption: NSFontCollectionMatchingOptionKey`](/documentation/AppKit/NSFontCollectionMatchingOptionKey/disallowAutoActivationOption)

An NSNumber object containing a Boolean value specifying that auto-activation should not be used to find missing fonts.

### Initializers

[`init(rawValue: String)`](/documentation/AppKit/NSFontCollectionMatchingOptionKey/init(rawValue:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)