showCGGlyphs(_:positions:count:font:matrix:attributes:in:)
Renders the glyphs at the specified positions, using the specified attributes.
Declaration
func showCGGlyphs(_ glyphs: UnsafePointer<CGGlyph>, positions: UnsafePointer<CGPoint>, count glyphCount: Int, font: UIFont, matrix textMatrix: CGAffineTransform, attributes: [NSAttributedString.Key : Any] = [:], in graphicsContext: CGContext)Parameters
- glyphs:
The glyphs to draw; may contain embedded
NULLbytes. - positions:
The positions at which to draw the glyphs in the user space coordinate system.
- glyphCount:
The number of glyphs.
- font:
The font applied to the graphics state. This value can be different from the
NSFontAttributeNamevalue in theattributesargument because of various font substitutions that the system automatically executes. - textMatrix:
The affine transform mapping the text space coordinate system to the user space coordinate system. The
txandtycomponents oftextMatrixare ignored since Quartz overrides them with the glyph positions. - attributes:
A dictionary of glyph attributes. See Glyph Attributes for supported keys and values.
- graphicsContext:
If non-
nil,graphicsContextis already configured according to the text attributes arguments:font,textMatrix, andattributes.
Discussion
NSLayoutManager invokes this primitive method unless an override implementation of the deprecated showPackedGlyphs:length:glyphRange:atPoint:font:color:printingAdjustment: method exists and this method is not overridden.
See Also
Methods
invalidateGlyphs(onLayoutInvalidationForGlyphRange:)invalidateLayout(forCharacterRange:isSoft:actualCharacterRange:)textStorage(_:edited:range:changeInLength:invalidatedRange:)insertGlyph(_:atGlyphIndex:characterIndex:)insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)glyph(at:)glyph(at:isValidIndex:)replaceGlyph(at:withGlyph:)getGlyphs(_:range:)getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:)getGlyphs(in:glyphs:characterIndexes:glyphInscriptions:elasticBits:bidiLevels:)deleteGlyphs(in:)setCharacterIndex(_:forGlyphAt:)intAttribute(_:forGlyphAt:)setIntAttribute(_:value:forGlyphAt:)