module TTFunk::Table::Post::Format40
Version 4.0 names glyphs by their character code.
Public Instance Methods
Source
# File lib/ttfunk/table/post/format40.rb, line 12 def glyph_for(code) @map[code] || 0xFFFF end
Get glyph name for character code.
@param code [Integer] @return [String]
Private Instance Methods
Source
# File lib/ttfunk/table/post/format40.rb, line 18 def parse_format! @map = read(file.maximum_profile.num_glyphs * 2, 'N*') end