---
title: "availableFontNames(matching:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/availablefontnames(matching:)"
---

# availableFontNames(matching:)

Returns the names of the fonts that match the attributes in the given font descriptor.

## Declaration

```swift
func availableFontNames(matching descriptor: NSFontDescriptor) -> [Any]?
```

## Parameters

- `descriptor`: The font descriptor whose attributes are matched.

## Return Value

Return Value The names of the matching fonts.

## See Also

### Methods

- [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)
- [removeFontDescriptor(_:fromCollection:)](appkit/nsfontmanager/removefontdescriptor(_:fromcollection:).md)
- [fontManager(_:willIncludeFont:)](objectivec/nsobject-swift.class/fontmanager(_:willincludefont:).md)
