Contents

showGlyphs(_:at:)

Draws a set of glyphs at a set of corresponding positions.

Declaration

func showGlyphs(_ glyphs: [CGGlyph], at positions: [CGPoint])

Parameters

  • glyphs:

    An array of glyphs.

  • positions:

    An array positions for the glyphs. Each item in this array specifies the position at which to draw the glyph at the corresponding index in the glyphs array.

Discussion

Points in the positions array are specified in text space, so the textMatrix property defines their transformation to user space.

See Also

Drawing Text