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
glyphsarray.
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
textMatrixtextPositionselectFont(name:size:textEncoding:)setCharacterSpacing(_:)setFont(_:)setFontSize(_:)setTextDrawingMode(_:)setAllowsFontSmoothing(_:)setAllowsFontSubpixelPositioning(_:)setAllowsFontSubpixelQuantization(_:)setShouldSmoothFonts(_:)setShouldSubpixelPositionFonts(_:)setShouldSubpixelQuantizeFonts(_:)showGlyphs(g:count:)showGlyphsAtPoint(x:y:glyphs:count:)