pub unsafe extern "C-unwind" fn CTFontDescriptorCopyLocalizedAttribute(
descriptor: &CTFontDescriptor,
attribute: &CFString,
language: *mut *const CFString,
) -> Option<CFRetained<CFType>>CTFontDescriptor only.Expand description
function CTFontDescriptorCopyLocalizedAttribute
Returns a localized value for the requested attribute if available.
This function returns a localized attribute based on the global language list. If localization is not possible for the attribute the behavior matches CTFontDescriptorCopyAttribute(). Generally, localization of attributes is only applicable to name attributes of a normalized font descriptor.
Parameter descriptor: The font descriptor reference.
Parameter attribute: The requested font attribute.
Parameter language: If non-NULL, this will be receive a retained reference to the matched language. The language identifier will conform to UTS #35.
If CoreText can supply its own localized string where the font cannot, this value will be NULL.
Returns: A retained reference to the requested attribute, or NULL if the requested attribute is not present. Refer to the attribute definitions for documentation as to how each attribute is packaged as a CFType.