Instance Method

defaultBaselineOffsetForFont:

Returns the default baseline offset that the layout manager's typesetter uses for the specified font.

Declaration

- (CGFloat)defaultBaselineOffsetForFont:(NSFont *)theFont;

Parameters

theFont

The font for which to return the default baseline offset.

Return Value

The default baseline offset for a line of text drawn using theFont.

Discussion

The value returned may vary according to the layout manager’s typesetter behavior.

See Also

Managing the Typesetter

typesetter

The current typesetter.

typesetterBehavior

The default typesetter behavior.

NSTypesetterBehavior

Constants that determine the layout manager's behavior during layout.

- defaultLineHeightForFont:

Returns the default line height for a line of text drawn using a given font.