Contents

layoutGlyphs(in:startingAtGlyphIndex:maxNumberOfLineFragments:nextGlyphIndex:)

Lays out glyphs in the specified layout manager starting at a specified glyph.

Declaration

func layoutGlyphs(in layoutManager: NSLayoutManager, startingAtGlyphIndex startGlyphIndex: Int, maxNumberOfLineFragments maxNumLines: Int, nextGlyphIndex nextGlyph: UnsafeMutablePointer<Int>)

Parameters

  • layoutManager:

    The layout manager in which to lay out glyphs.

  • startGlyphIndex:

    The index of the starting glyph.

  • maxNumLines:

    The maximum number of lines to generate. Fewer lines may be laid out if the glyph storage runs out of glyphs.

  • nextGlyph:

    On return, set to the index of the next glyph that needs to be laid out.

See Also

Laying out glyphs