module TTFunk::Table::Post::Format40
Public Instance Methods
glyph_for(code)
click to toggle source
# File lib/ttfunk/table/post/format40.rb, line 7 def glyph_for(code) @map[code] || 0xFFFF end
Private Instance Methods
parse_format!()
click to toggle source
# File lib/ttfunk/table/post/format40.rb, line 13 def parse_format! @map = read(file.maximum_profile.num_glyphs * 2, 'N*') end