Type Method

controlContentFontOfSize:

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

Declaration

+ (NSFont *)controlContentFontOfSize:(CGFloat)fontSize;

Parameters

fontSize

The size in points to which the font is scaled.

Return Value

A font object of the specified size.

Discussion

For example, in a table, the user’s input uses the control content font, and the table’s header uses another font. If fontSize is 0 or negative, returns the control content font at the default size.

See Also

Creating UI Element Fonts

+ labelFontOfSize:

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

+ messageFontOfSize:

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

+ menuBarFontOfSize:

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

+ menuFontOfSize:

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

+ titleBarFontOfSize:

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

+ paletteFontOfSize:

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

+ toolTipsFontOfSize:

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

labelFontSize

Returns the size of the standard label font.

+ systemFontSizeForControlSize:

Returns the font size used for the specified control size.