Contents

systemFont(ofSize:)

Returns the standard system font with the specified size.

Declaration

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

Parameters

  • fontSize:

    The desired font size specified in points. If you specify 0.0 or a negative number for this parameter, the method returns the system font at the default size.

Return Value

A font object containing the system font at the specified size.

Discussion

Use the returned font for standard interface items, including button labels, menu items, and so on that use the default font appearance.

See Also

Related Documentation

Creating System Fonts