Function

CTLineGetStringRange(_:)

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

Declaration

func CTLineGetStringRange(_ line: CTLine) -> CFRange

Parameters

line

The line from which to obtain the string range.

Return Value

A CFRange structure that contains the range over the backing store string that spawned the glyphs, or if the function fails for any reason, an empty range.

See Also

Getting Line Data

func CTLineGetGlyphCount(CTLine) -> CFIndex

Returns the total glyph count for the line object.

func CTLineGetGlyphRuns(CTLine) -> CFArray

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

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

Gets the pen offset required to draw flush text.