Contents

systemFontSize(for:)

Returns the font size used for the specified control size.

Declaration

class func systemFontSize(for controlSize: NSControl.ControlSize) -> CGFloat

Parameters

  • controlSize:

    The control size constant.

Return Value

The font size in points for the specified control size.

Discussion

If controlSize does not correspond to a valid NSControlSize, returns the size of the standard system font.

See Also

Creating UI Element Fonts