Type Method

userFontOfSize:

Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), in the specified size.

Declaration

+ (NSFont *)userFontOfSize:(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 the user font at the default size.

See Also

Creating User Fonts

+ userFixedPitchFontOfSize:

Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), when that font should be fixed-pitch, in the specified size.