<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.11.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontManager/addCollection(_:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFontManager(im)addCollection:options:"
  },
  "title" : "addCollection(_:options:)"
}
-->

# addCollection(_:options:)

Adds a specified font collection to the font manager with a given set of options.

```
func addCollection(_ collectionName: String, options collectionOptions: NSFontCollectionOptions = []) -> Bool
```

## Parameters

`collectionName`

The collection to add.

`collectionOptions`

The option described in `Font Collection Mask`. This option is not yet implemented.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the font collection was successfully added; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

---

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)