Contents

CTRunDelegateGetWidthCallback

Defines a pointer to a function that determines the typographic width of glyphs in the run.

Declaration

typealias CTRunDelegateGetWidthCallback = (UnsafeMutableRawPointer) -> CGFloat

Parameters

Return Value

The typographic width of glyphs in the run associated with the run delegate. A value of 0.0 indicates that the glyphs should not be drawn.

Discussion

You would declare the get-width function like this if you were to name it MyGetWidthCallback:

See Also

Callbacks