module HexaPDF::Font::TrueType::Table::CmapSubtable::Format12

Cmap format 12

Public Class Methods

parse(io, length) → code_map click to toggle source

Parses the format 12 cmap subtable from the given IO at the current position and returns the contained code map.

It is assumed that the first twelve bytes of the subtable have already been consumed.

# File lib/hexapdf/font/true_type/table/cmap_subtable.rb, line 367
def self.parse(io, _length)
  mapper(Array.new(io.read(4).unpack1('N')) { io.read(12).unpack('N3') })
end