---
title: "addCollection(_:options:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/addcollection(_:options:)"
---

# addCollection(_:options:)

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

## Declaration

```swift
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

Return Value true if the font collection was successfully added; otherwise, false.

## See Also

### Methods

- [availableFontNames(matching:)](appkit/nsfontmanager/availablefontnames(matching:).md)
- [fontDescriptors(inCollection:)](appkit/nsfontmanager/fontdescriptors(incollection:).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)
