class HexaPDF::Font::TrueType::Table::Loca

See: developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6loca.html<br><br>the ‘glyf’ table.
The ‘loca’ (location) table contains the offsets of the glyphs relative to the start of

def length(glyph_id)

Returns the length of the 'glyf' entry for the given glyph ID.
def length(glyph_id)
  @offsets[glyph_id + 1] - @offsets[glyph_id]
end

def offset(glyph_id)

table.
Returns the byte offset for the given glyph ID relative to the start of the 'glyf'
def offset(glyph_id)
  @offsets[glyph_id]
end

def parse_table #:nodoc:

:nodoc:
def parse_table #:nodoc:
  entry_size = font[:head].index_to_loc_format
  @offsets = read_formatted(directory_entry.length, (entry_size == 0 ? 'n*' : 'N*'))
  @offsets.map! {|offset| offset * 2 } if entry_size == 0
end