GlyphOffsets

public struct GlyphOffsets : RandomAccessCollection

A collection of the glyph offsets in a shaping result.

  • The number of elements in the collection.

    Declaration

    Swift

    public let count: Int
  • The index to the first element.

    Declaration

    Swift

    public var startIndex: Int { get }
  • The index after the last element.

    Declaration

    Swift

    public var endIndex: Int { get }
  • Accesses the glyph offset at the specified position.

    Declaration

    Swift

    public subscript(index: Int) -> CGPoint { get }

    Parameters

    index

    The position of the element to access. index must be greater than or equal to startIndex and less than endIndex.