Instance Method

insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)

Inserts the given glyphs into the glyph cache and maps them to the specified characters.

Required.

Declaration

func insertGlyphs(_ glyphs: UnsafePointer<NSGlyph>, length: Int, forStartingGlyphAt glyphIndex: Int, characterIndex charIndex: Int)

Parameters

glyphs

The glyphs to insert.

glyphIndex

Location in the glyph cache to begin inserting glyphs.

length

Number of glyphs to insert.

charIndex

Index of first character to be mapped.

Discussion

This is a bulk insert method for the glyph cache.

See Also

Modifying the glyph cache

func setIntAttribute(Int, value: Int, forGlyphAt: Int)

Sets a custom attribute value for a given glyph.

Required.