Type Method

messageFontOfSize:

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

Declaration

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

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 systemFontOfSize:.

See Also

Creating System Fonts

+ systemFontOfSize:

Returns the standard system font with the specified size.

+ systemFontOfSize:weight:

Returns the standard system font with the specified size and weight.

+ boldSystemFontOfSize:

Returns the standard system font in boldface type with the specified size.

+ monospacedSystemFontOfSize:weight:

Returns a monospace version of the system font with the specified size and weight.

+ monospacedDigitSystemFontOfSize:weight:

Returns a version of the standard system font that contains monospaced digit glyphs.

systemFontSize

Returns the size of the standard system font.

smallSystemFontSize

Returns the size of the standard small system font.

NSFontWeight

System-defined font-weight values.