# File lib/ttfunk/table/cmap/subtable.rb, line 38 def initialize(file, table_start) @file = file @platform_id, @encoding_id, @offset = read(8, "nnN") @offset += table_start parse_from(@offset) do @format = read(2, "n").first case @format when 0 then extend(TTFunk::Table::Cmap::Format00) when 4 then extend(TTFunk::Table::Cmap::Format04) end parse_cmap! end end