Function CTRunGetTextMatrix

Source
pub unsafe extern "C-unwind" fn CTRunGetTextMatrix(
    run: &CTRun,
) -> CGAffineTransform
Available on crate feature CTRun only.
Expand description

Returns the text matrix needed to draw this run.

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.

Parameter run: The run object from which to get the text matrix.

Returns: A CGAffineTransform.