CTRunDelegateGetWidthCallback
Defines a pointer to a function that determines the typographic width of glyphs in the run.
Declaration
typealias CTRunDelegateGetWidthCallback = (UnsafeMutableRawPointer) -> CGFloatParameters
- refCon:
The reference-constant value supplied to the Ctrundelegatecreate(_:_:) function when the run delegate was created.
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: