Contents

init(fontAttributes:)

Initializes and returns a new font descriptor with the specified attributes.

Declaration

init(fontAttributes attributes: [NSFontDescriptor.AttributeName : Any]? = nil)

Parameters

  • attributes:

    The attributes for the new font descriptor. If nil, the font descriptor’s attribute dictionary will be empty.

Return Value

The new font descriptor.

See Also

Creating a Font Descriptor