Contents

advancement(forCGGlyph:)

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

func advancement(forCGGlyph glyph: CGGlyph) -> NSSize

Parameters

  • glyph:

    The glyph whose advancement is returned.

Return Value

The advancement spacing in points.

Discussion

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

See Also

Getting Glyph Advancements