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

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

def preferred_record

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

Returns the preferred record in this collection.
def preferred_record
  find(&:preferred?) || self[0]
end