Function

CTLineGetGlyphCount(_:)

Returns the total glyph count for the line object.

Declaration

func CTLineGetGlyphCount(_ line: CTLine) -> CFIndex

Parameters

line

The line whose glyph count is returned.

Return Value

The total glyph count for the line passed in.

Discussion

The total glyph count is equal to the sum of all of the glyphs in the glyph runs forming the line.

See Also

Getting Line Data

func CTLineGetGlyphRuns(CTLine) -> CFArray

Returns the array of glyph runs that make up 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