Class: HexaPDF::Font::TrueType::Table::Name::Records

Inherits:
Array
  • Object
show all
Defined in:
lib/hexapdf/font/true_type/table/name.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#preferred_recordObject

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.



147
148
149
# File 'lib/hexapdf/font/true_type/table/name.rb', line 147

def preferred_record
  find(&:preferred?) || self[0]
end