Function

CTRunGetTextMatrix

Returns the text matrix needed to draw this run.

Declaration

CGAffineTransform CTRunGetTextMatrix(CTRunRef run);

Parameters

run

The run object from which to get the text matrix.

Return Value

A CGAffineTransform structure.

Discussion

To properly draw the glyphs in a run, the fields tx and ty of the CGAffineTransform returned by this function should be set to the current text position.

See Also

Drawing the Glyph Run

CTRunDraw

Draws a complete run or part of one.