Type Method

systemFont(ofSize:)

Returns the Aqua system font used for standard interface items, such as button labels, menu items, and so on, in the specified size.

Declaration

class func systemFont(ofSize fontSize: CGFloat) -> NSFont

Parameters

fontSize

The size in points to which the font is scaled.

Return Value

A font object of the specified size.

Discussion

If fontSize is 0 or negative, returns the system font at the default size.

See Also

Creating System Fonts

class func boldSystemFont(ofSize: CGFloat)

Returns the Aqua system font used for standard interface items that are rendered in boldface type in the specified size.

class func controlContentFont(ofSize: CGFloat)

Returns the font used for the content of controls in the specified size.

class func labelFont(ofSize: CGFloat)

Returns the font used for standard interface labels in the specified size.

class func menuFont(ofSize: CGFloat)

Returns the font used for menu items, in the specified size.

class func menuBarFont(ofSize: CGFloat)

Returns the font used for menu bar items, in the specified size.

class func messageFont(ofSize: CGFloat)

Returns the font used for standard interface items, such as button labels, menu items, and so on, in the specified size.

class func paletteFont(ofSize: CGFloat)

Returns the font used for palette window title bars, in the specified size.

class func titleBarFont(ofSize: CGFloat)

Returns the font used for window title bars, in the specified size.

class func toolTipsFont(ofSize: CGFloat)

Returns the font used for tool tips labels, in the specified size.

struct NSFont.Weight

System-defined font-weight values.