Contents

draw(at:in:)

Renders the line fragment contents at the rendering origin.

Declaration

func draw(at point: CGPoint, in context: CGContext)

Parameters

  • point:

    The origin as a CGPoint.

  • context:

    The drawing context.

Discussion

You can specify the origin as (NSMinX(typographicBounds) + glyphOrigin.x, NSMinY(typographicBounds) + glyphOrigin.y) relative to the line fragment group coordinate system.