Class: HexaPDF::Font::TrueType::Table::Name::Records
- Inherits:
-
Array
- Object
- Array
- HexaPDF::Font::TrueType::Table::Name::Records
- 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
-
#preferred_record ⇒ Object
Returns the preferred record in this collection.
Instance Method Details
#preferred_record ⇒ Object
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 |