CTLine
A line of text.
Declaration
class CTLineOverview
A CTLine object contains an array of glyph runs. Line objects are created by the typesetter during a framesetting operation and can draw themselves directly into a graphics context.
Topics
Creating Lines
CTLineCreateWithAttributedString(_:)CTLineCreateTruncatedLine(_:_:_:_:)CTLineCreateJustifiedLine(_:_:_:)
Drawing the Line
Getting Line Data
CTLineGetGlyphCount(_:)CTLineGetGlyphRuns(_:)CTLineGetStringRange(_:)CTLineGetPenOffsetForFlush(_:_:_:)
Measuring Lines
Getting Line Positioning
CTLineGetStringIndexForPosition(_:_:)CTLineGetOffsetForStringIndex(_:_:_:)CTLineEnumerateCaretOffsets(_:_:)