Contents

object(forKey:)

Returns the font attribute specified by the given key.

Declaration

func object(forKey attribute: NSFontDescriptor.AttributeName) -> Any?

Parameters

  • attribute:

    The font attribute key.

Return Value

The font attribute corresponding to anAttribute. For valid values of anAttribute, see Font Attributes.

See Also

Related Documentation

Getting the Font Attributes