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)
Source Code
lib/ttfunk/table/post/format40.rb, line 12
12
def glyph_for(code)
13
  @map[code] || 0xFFFF
14
end