---
title: "convertAttributes(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/convertattributes(_:)"
---

# convertAttributes(_:)

Converts attributes in response to an object initiating an attribute change, typically the Font panel or Font menu.

## Declaration

```swift
func convertAttributes(_ attributes: [String : Any] = [:]) -> [String : Any]
```

## Parameters

- `attributes`: The current attributes.

## Return Value

Return Value The converted attributes, or attributes itself if the conversion isn’t possible.

## Discussion

Discussion Attributes unused by the sender should not be changed or removed. This method is usually invoked on the sender of changeAttributes(_:). See Working with the Font Manager for more information.

## See Also

### Setting Attributes

- [setSelectedAttributes(_:isMultiple:)](appkit/nsfontmanager/setselectedattributes(_:ismultiple:).md)
