---
title: "CTFontDescriptorCopyAttributes(_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontdescriptorcopyattributes(_:)"
---

# CTFontDescriptorCopyAttributes(_:)

Returns the attributes dictionary of the font descriptor.

## Declaration

```swift
func CTFontDescriptorCopyAttributes(_ descriptor: CTFontDescriptor) -> CFDictionary
```

## Parameters

- `descriptor`: The font descriptor.

## Return Value

Return Value The font descriptor attributes dictionary. This dictionary contains the minimum number of attributes to specify fully this particular font descriptor.

## See Also

### Getting Attributes

- [CTFontDescriptorCopyAttribute(_:_:)](coretext/ctfontdescriptorcopyattribute(_:_:).md)
- [CTFontDescriptorCopyLocalizedAttribute(_:_:_:)](coretext/ctfontdescriptorcopylocalizedattribute(_:_:_:).md)
