class HexaPDF::Font::TrueType::Table::Cmap
The 'cmap' table contains subtables for mapping character codes to glyph indices.
See:
Attributes
tables[RW]
The available cmap subtables.
version[RW]
The version of the cmap table.
Public Instance Methods
preferred_table()
click to toggle source
Returns the preferred of the available cmap subtables.
A preferred table is always a table mapping Unicode characters.
# File lib/hexapdf/font/true_type/table/cmap.rb, line 60 def preferred_table tables.select(&:unicode?).max_by(&:format) end