---
title: "CTFontDescriptorCopyLocalizedAttribute(_:_:_:)"
framework: coretext
role: symbol
role_heading: Function
path: "coretext/ctfontdescriptorcopylocalizedattribute(_:_:_:)"
---

# CTFontDescriptorCopyLocalizedAttribute(_:_:_:)

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

## Declaration

```swift
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

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

## Discussion

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(_:_:). Generally, localization of attributes is applicable to name attributes of only a normalized font descriptor.

## See Also

### Getting Attributes

- [CTFontDescriptorCopyAttributes(_:)](coretext/ctfontdescriptorcopyattributes(_:).md)
- [CTFontDescriptorCopyAttribute(_:_:)](coretext/ctfontdescriptorcopyattribute(_:_:).md)
