Contents

CGContextSetTextMatrix

Sets the current text matrix.

Declaration

extern void CGContextSetTextMatrix(CGContextRef c, CGAffineTransform t);

Parameters

  • c:

    A graphics context.

  • t:

    The text matrix to set.

Discussion

The text matrix specifies the transform from text space to user space. To produce the final text rendering matrix that is used to actually draw the text on the page, Core Graphics concatenates the text matrix with the current transformation matrix and other parameters from the graphics state.

Note that the text matrix is not a part of the graphics state—saving or restoring the graphics state has no effect on the text matrix. The text matrix is an attribute of the graphics context, not of the current font.

See Also

Drawing Text