Module: TTFunk::Table::Post::Format40

Defined in:
lib/ttfunk/table/post/format40.rb

Overview

Version 4.0 names glyphs by their character code.

Instance Method Summary collapse

Instance Method Details

#glyph_for(code) ⇒ String

Get glyph name for character code.

Parameters:

  • code (Integer)

Returns:

  • (String)


12
13
14
# File 'lib/ttfunk/table/post/format40.rb', line 12

def glyph_for(code)
  @map[code] || 0xFFFF
end