Instance Method

object(forKey:)

Returns the font attribute specified by the given key.

Declaration

func object(forKey anAttribute: UIFontDescriptor.AttributeName) -> Any?

Parameters

anAttribute

The font attribute key.

Return Value

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

See Also

Querying a Font Descriptor

var fontAttributes: [UIFontDescriptor.AttributeName : Any]

Returns the font descriptor's dictionary of attributes.

var matrix: CGAffineTransform

The current transform matrix of the font descriptor.

var pointSize: CGFloat

The point size of the font descriptor.

var postscriptName: String

The PostScript name of the font descriptor.

var symbolicTraits: UIFontDescriptor.SymbolicTraits

A bit mask that describes the traits of the font descriptor.