Function

CTLineGetBoundsWithOptions

Calculates the bounds for a line.

Declaration

CGRect CTLineGetBoundsWithOptions(CTLineRef line, CTLineBoundsOptions options);

Parameters

line

The line for which you calculate the bounds.

options

Desired options or 0 if none.

Return Value

The bounds of the line as specified by the type and options, such that the coordinate origin is coincident with the line origin and the rect origin is at the bottom left. If the line is invalid, this function will return CGRectNull.

See Also

Measuring the Glyph Run

CTRunGetTypographicBounds

Gets the typographic bounds of the run.

CTRunGetImageBounds

Calculates the image bounds for a glyph range.

CTRunGetBaseAdvancesAndOrigins

Copies a range of base advances and origins into user-provided buffers.