Module: TTFunk::Table::Post::Format20

Includes:
Format10
Defined in:
lib/ttfunk/table/post/format20.rb

Constant Summary

Constants included from Format10

TTFunk::Table::Post::Format10::POSTSCRIPT_GLYPHS

Instance Method Summary collapse

Instance Method Details

#glyph_for(code) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/ttfunk/table/post/format20.rb', line 10

def glyph_for(code)
  index = @glyph_name_index[code]
  if index <= 257
    POSTSCRIPT_GLYPHS[index]
  else
    @names[index - 258] || ".notdef"
  end
end