Contents

CTRunDelegateGetAscentCallback

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

Declaration

typealias CTRunDelegateGetAscentCallback = (UnsafeMutableRawPointer) -> CGFloat

Parameters

Return Value

The typographic ascent of glyphs in the run associated with the run delegate.

Discussion

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

See Also

Callbacks