Function

CTRunGetTextMatrix(_:)

Returns the text matrix needed to draw this run.

Declaration

func CTRunGetTextMatrix(_ run: CTRun) -> CGAffineTransform

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

func CTRunDraw(CTRun, CGContext, CFRange)

Draws a complete run or part of one.

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