CTFontDescriptorCreateWithAttributes(_:)
Creates a new font descriptor reference from a dictionary of attributes.
Declaration
func CTFontDescriptorCreateWithAttributes(_ attributes: CFDictionary) -> CTFontDescriptorParameters
- attributes:
A dictionary containing arbitrary attributes.
Return Value
A new font descriptor with the attributes specified.
Discussion
The provided attribute dictionary can contain arbitrary attributes that are preserved; however, unrecognized attributes are ignored on font creation and may not be preserved over the round trip from descriptor to font and back to descriptor.
See Also
Creating Font Descriptors
CTFontDescriptorCreateWithNameAndSize(_:_:)CTFontDescriptorCreateCopyWithAttributes(_:_:)CTFontDescriptorCreateCopyWithVariation(_:_:_:)CTFontDescriptorCreateCopyWithFeature(_:_:_:)CTFontDescriptorCreateCopyWithFamily(_:_:)CTFontDescriptorCreateCopyWithSymbolicTraits(_:_:_:)CTFontDescriptorCreateMatchingFontDescriptors(_:_:)CTFontDescriptorCreateMatchingFontDescriptor(_:_:)