Contents

insertGlyphs(_:length:forStartingGlyphAt:characterIndex:)

Inserts the given glyphs into the glyph cache at the given index and maps them to characters beginning at the given character index.

Declaration

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

Parameters

  • glyphs:

    The glyphs to insert.

  • length:

    The number of glyphs to insert.

  • glyphIndex:

    The index in the glyph cache to begin inserting glyphs.

  • charIndex:

    Index of first character to be mapped.

Discussion

This method is part of the NSGlyphStorage protocol, for use by the glyph generator. It enables bulk insertion of glyphs into the glyph cache.

See Also

Methods