Contents

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] = [:]) -> NSFontDescriptor

Parameters

  • attributes:

    The replacement attributes for the new font descriptor.

Return Value

The new font descriptor.

See Also

Modifying an Existing Font Descriptor