class HexaPDF::Font::TrueType::Table::Name

The 'name' table contains the human-readable names for features, font names, style names, copyright notices and so on.

See: developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html

Constants

NAME_MAP

Table for mapping symbolic names to name_id codes.

Attributes

format[RW]

The format of the table.

language_tags[RW]

The mapping of language IDs starting from 0x8000 to language tags conforming to IETF BCP 47.

records[RW]

The name records.

Public Instance Methods

[](name_or_id) click to toggle source

Returns an array with all available entries for the given name identifier (either a symbol or an ID).

See: NAME_MAP

# File lib/hexapdf/font/true_type/table/name.rb, line 166
def [](name_or_id)
  @records[name_or_id.kind_of?(Symbol) ? NAME_MAP[name_or_id] : name_or_id]
end