---
title: "removeFontDescriptor(_:fromCollection:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/removefontdescriptor(_:fromcollection:)"
---

# removeFontDescriptor(_:fromCollection:)

Removes the specified font descriptor from the specified collection.

## Declaration

```swift
func removeFontDescriptor(_ descriptor: NSFontDescriptor, fromCollection collection: String)
```

## Parameters

- `descriptor`: The font descriptor to remove.
- `collection`: The font collection from which to remove the descriptor.

## See Also

### Methods

- [availableFontNames(matching:)](appkit/nsfontmanager/availablefontnames(matching:).md)
- [fontDescriptors(inCollection:)](appkit/nsfontmanager/fontdescriptors(incollection:).md)
- [addCollection(_:options:)](appkit/nsfontmanager/addcollection(_:options:).md)
- [removeCollection(_:)](appkit/nsfontmanager/removecollection(_:).md)
- [addFontDescriptors(_:toCollection:)](appkit/nsfontmanager/addfontdescriptors(_:tocollection:).md)
- [fontManager(_:willIncludeFont:)](objectivec/nsobject-swift.class/fontmanager(_:willincludefont:).md)
