Type Method

fontWithDescriptor:textTransform:

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

Declaration

+ (NSFont *)fontWithDescriptor:(NSFontDescriptor *)fontDescriptor textTransform:(NSAffineTransform *)textTransform;

Parameters

fontDescriptor

The font descriptor object describing the font to return.

textTransform

An affine transformation applied to the font.

Return Value

A font object for the specified name and transform.

Discussion

In most cases, you can simply use fontWithName:size: to create standard scaled fonts. If textTransform is non-nil, it has precedence over NSFontMatrixAttribute in fontDescriptor.

See Also

Creating Arbitrary Fonts

+ fontWithName:size:

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

+ fontWithDescriptor:size:

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

+ fontWithName:matrix:

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