NameTable

public struct NameTable

Represents an OpenType name table.

  • Creates a name table representation from the specified typeface.

    Declaration

    Swift

    public init?(typeface: Typeface)

    Parameters

    typeface

    The typeface for accessing the data of the table.

  • The number of name records in this table.

    Declaration

    Swift

    public var recordCount: Int { get }
  • Retrieves a name record at a specified index.

    Precondition

    index must be greater than or equal to zero and less than recordCount.

    Declaration

    Swift

    public func record(at index: Int) -> Record

    Parameters

    index

    The index of the name record.

    Return Value

    A record of OpenType name table at a specified index.

  • Represents a single record of OpenType name table.

    See more

    Declaration

    Swift

    public struct Record