CTRunGetTypographicBounds(_:_:_:_:_:)
Gets the typographic bounds of the run.
Declaration
func CTRunGetTypographicBounds(_ run: CTRun, _ range: CFRange, _ ascent: UnsafeMutablePointer<CGFloat>?, _ descent: UnsafeMutablePointer<CGFloat>?, _ leading: UnsafeMutablePointer<CGFloat>?) -> DoubleParameters
- run:
The run for which to calculate the typographic bounds.
- range:
The portion of the run to measure. If the length of the range is set to
0, then the measure operation continues from the range’s start index to the end of the run. - ascent:
On output, the ascent of the run. This can be set to
NULLif not needed. - descent:
On output, the descent of the run. This can be set to
NULLif not needed. - leading:
On output, the leading of the run. This can be set to
NULLif not needed.
Return Value
The typographic width of the run, or if run or range is invalid, 0.