<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreText",
  "identifier" : "/documentation/CoreText/CTFontCollectionCopyFontAttributes(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Text"
    ],
    "preciseIdentifier" : "c:@F@CTFontCollectionCopyFontAttributes"
  },
  "title" : "CTFontCollectionCopyFontAttributes(_:_:_:)"
}
-->

# CTFontCollectionCopyFontAttributes(_:_:_:)

Retrieves an array of dictionaries containing font descriptor attribute values.

```
func CTFontCollectionCopyFontAttributes(_ collection: CTFontCollection, _ attributeNames: CFSet, _ options: CTFontCollectionCopyOptions) -> CFArray
```

## Parameters

`collection`

The font collection reference.

`attributeNames`

The attributes to retrieve for each descriptor in the collection.

`options`

Options to alter the return value. With [`kCTFontCollectionCopyDefaultOptions`](/documentation/CoreText/CTFontCollectionCopyOptions/kCTFontCollectionCopyDefaultOptions), the values appear in the same order as the results from [`CTFontCollectionCreateMatchingFontDescriptors(_:)`](/documentation/CoreText/CTFontCollectionCreateMatchingFontDescriptors(_:)). Setting [`unique`](/documentation/CoreText/CTFontCollectionCopyOptions/unique) removes duplicate values. Setting [`standardSort`](/documentation/CoreText/CTFontCollectionCopyOptions/standardSort) sorts the values in standard UI order.

## Return Value

An array that contains one <doc://com.apple.documentation/documentation/CoreFoundation/CFDictionary> value for each descriptor mapping the specified attribute names.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)