Instance Method

advancementForGlyph:

Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver’s size.

Declaration

- (NSSize)advancementForGlyph:(NSGlyph)glyph;

Parameters

aGlyph

The glyph whose advancement is returned.

Return Value

The advancement spacing in points.

Discussion

This spacing is given according to the glyph’s movement direction, which is either strictly horizontal or strictly vertical.

See Also

Methods

- getAdvancements:forGlyphs:count:

Returns an array of the advancements for the specified glyphs rendered by the receiver.

Deprecated
- getAdvancements:forPackedGlyphs:length:

Returns an array of the advancements for the specified packed glyphs and rendered by the receiver.

Deprecated
- boundingRectForGlyph:

Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size.

Deprecated
- getBoundingRects:forGlyphs:count:

Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver.

Deprecated
- glyphWithName:

Returns the named encoded glyph, or –1 if the receiver contains no such glyph.

Deprecated
- screenFontWithRenderingMode:

Returns a bitmapped screen font, when sent to a font object representing a scalable PostScript font, with the specified rendering mode, matching the receiver in typeface and matrix (or size), or nil if such a font can’t be found.

Deprecated