Type Method

fontWithDescriptor:size:

Returns a font object for the specified font descriptor and font size.

Declaration

+ (NSFont *)fontWithDescriptor:(NSFontDescriptor *)fontDescriptor size:(CGFloat)fontSize;

Parameters

fontDescriptor

A font descriptor object.

fontSize

The size in points to which the font is scaled.

Return Value

A font object for the specified descriptor and size.

Discussion

In most cases, you can simply use fontWithName:size: to create standard scaled fonts.

See Also

Creating Arbitrary Fonts

+ fontWithName:size:

Creates a font object for the specified font name and font size.

+ fontWithDescriptor:textTransform:

Returns a font object for the specified font descriptor and text transform.

+ fontWithName:matrix:

Returns a font object for the specified font name and matrix.