Contents

messageFont(ofSize:)

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

Declaration

class func messageFont(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 this font at the default size. This method is equivalent to systemFont(ofSize:).

See Also

Related Documentation

Creating UI Element Fonts