Contents

getGlyphAdvances(glyphs:count:advances:)

Gets the advance width of each glyph in the provided array.

Declaration

func getGlyphAdvances(glyphs: UnsafePointer<CGGlyph>, count: Int, advances: UnsafeMutablePointer<Int32>) -> Bool

Parameters

  • glyphs:

    An array of glyphs.

  • count:

    The number of glyphs in the array.

  • advances:

    On output, an array of advance widths for the provided glyphs.

Return Value

true unless the advance widths can’t be provided for some reason.

See Also

Working with Glyphs