Function

CTLineDraw(_:_:)

Draws a complete line.

Declaration

func CTLineDraw(_ line: CTLine, _ context: CGContext)

Parameters

line

The line to draw.

context

The context into which the line is drawn.

Discussion

This is a convenience function because the line could be drawn run-by-run by getting the glyph runs, getting the glyphs out of them, and calling a function such as showGlyphs(_:atPositions:count:). This call can leave the graphics context in any state and does not flush the context after the draw operation.

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