CTFontDescriptorCreateCopyWithAttributes(_:_:)
Creates a copy of the original font descriptor with new attributes.
Declaration
func CTFontDescriptorCreateCopyWithAttributes(_ original: CTFontDescriptor, _ attributes: CFDictionary) -> CTFontDescriptorParameters
- original:
The original font descriptor.
- attributes:
A dictionary containing arbitrary attributes.
Return Value
A new copy of the original font descriptor with attributes augmented by those specified. If there are conflicts between attributes, the new attributes replace existing ones.
See Also
Creating Font Descriptors
CTFontDescriptorCreateWithNameAndSize(_:_:)CTFontDescriptorCreateWithAttributes(_:)CTFontDescriptorCreateCopyWithVariation(_:_:_:)CTFontDescriptorCreateCopyWithFeature(_:_:_:)CTFontDescriptorCreateCopyWithFamily(_:_:)CTFontDescriptorCreateCopyWithSymbolicTraits(_:_:_:)CTFontDescriptorCreateMatchingFontDescriptors(_:_:)CTFontDescriptorCreateMatchingFontDescriptor(_:_:)