module TTFunk::Table::Post::Format25

Public Instance Methods

glyph_for(code) click to toggle source
# File lib/ttfunk/table/post/format25.rb, line 10
def glyph_for(code)
  POSTSCRIPT_GLYPHS[code + @offsets[code]] || ".notdef"
end

Private Instance Methods

parse_format!() click to toggle source
# File lib/ttfunk/table/post/format25.rb, line 16
def parse_format!
  number_of_glyphs = read(2, 'n').first
  @offsets = read(@number_of_glyphs, "c*")
end