Contents

setCharacterSpacing(_:)

Sets the current character spacing.

Declaration

func setCharacterSpacing(_ spacing: CGFloat)

Parameters

  • spacing:

    A value that represents the amount of additional space to place between glyphs, in text space coordinates.

Discussion

Core Graphics adds the additional space to the advance between the origin of one character and the origin of the next character. For information about the text coordinate system, see CGContextSetTextMatrix.

See Also

Drawing Text