Function

CGContextSetCharacterSpacing

Sets the current character spacing.

Declaration

void CGContextSetCharacterSpacing(CGContextRef c, CGFloat spacing);

Parameters

c

The graphics context for which to set the character spacing.

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

CGContextGetTextMatrix

Returns the current text matrix.

CGContextGetTextPosition

Returns the location at which text is drawn.

CGContextSelectFont

Sets the font and font size in a graphics context.

Deprecated
CGContextSetFont

Sets the platform font in a graphics context.

CGContextSetFontSize

Sets the current font size.

CGContextSetTextDrawingMode

Sets the current text drawing mode.

CGContextSetTextMatrix

Sets the current text matrix.

CGContextSetTextPosition

Sets the location at which text is drawn.

CGContextShowText

Displays a character array at the current text position, a point specified by the current text matrix.

Deprecated
CGContextShowTextAtPoint

Displays a character string at a position you specify.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software