Function

CTLineGetGlyphRuns(_:)

Returns the array of glyph runs that make up the line object.

Declaration

func CTLineGetGlyphRuns(_ line: CTLine) -> CFArray

Parameters

line

The line whose glyph run array is returned.

Return Value

A CFArray containing the CTRun objects that make up the line.

See Also

Getting Line Data

func CTLineGetGlyphCount(CTLine) -> CFIndex

Returns the total glyph count for the line object.

func CTLineGetStringRange(CTLine) -> CFRange

Gets the range of characters that originally spawned the glyphs in the line.

func CTLineGetPenOffsetForFlush(CTLine, CGFloat, Double) -> Double

Gets the pen offset required to draw flush text.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software