addingAttributes(_:)
Returns a new font descriptor based on the current object, but with the specified attributes taking precedence over the existing ones.
Declaration
func addingAttributes(_ attributes: [NSFontDescriptor.AttributeName : Any] = [:]) -> NSFontDescriptorParameters
- attributes:
The replacement attributes for the new font descriptor.
Return Value
The new font descriptor.