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

Parent

The ‘loca’ (location) table contains the offsets of the glyphs relative to the start of the ‘glyf’ table.

See: developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6loca.html

Attributes

offsets[RW]

The array containing the byte offsets for each glyph relative to the start of the ‘glyf’ table.

Public Instance Methods

length(glyph_id)

Returns the length of the ‘glyf’ entry for the given glyph ID.

offset(glyph_id)

Returns the byte offset for the given glyph ID relative to the start of the ‘glyf’ table.