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

Holds records for the same name type (e.g. :font_name, :postscript_name, …).

Public Instance Methods

preferred_record() click to toggle source

Returns the preferred record in this collection.

This is either the first record where Record#preferred? is true or else just the first record in the collection.

# File lib/hexapdf/font/true_type/table/name.rb, line 146
def preferred_record
  find(&:preferred?) || self[0]
end