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

# CTFontDescriptorCopyLocalizedAttribute(_:_:_:)

Returns a localized value for the requested attribute, if available.

```
func CTFontDescriptorCopyLocalizedAttribute(_ descriptor: CTFontDescriptor, _ attribute: CFString, _ language: UnsafeMutablePointer<Unmanaged<CFString>?>?) -> CFTypeRef?
```

## Parameters

`descriptor`

The font descriptor.

`attribute`

The requested font attribute.

`language`

On output, contains a reference to the matched language. The language identifier will conform to the RFC 3066bis standard.

## Return Value

A retained reference to a localized attribute based on the global language list.

## Discussion

This function passes back the matched language in `language`. If localization is not possible for the attribute, the behavior matches the value returned from [`CTFontDescriptorCopyAttribute(_:_:)`](/documentation/CoreText/CTFontDescriptorCopyAttribute(_:_:)). Generally, localization of attributes is applicable to name attributes of only a normalized font descriptor.

---

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)