CTRunGetTextMatrix(_:)
Returns the text matrix needed to draw this run.
Declaration
func CTRunGetTextMatrix(_ run: CTRun) -> CGAffineTransformParameters
- 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.