class HexaPDF::Font::TrueType::Table::Glyf

Parent

The ‘glyf’ table contains the instructions for rendering glyphs and some additional glyph information.

This is probably always the largest table in a TrueType font, so care is taken to perform operations lazily.

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

Attributes

glyphs[RW]

The mapping from glyph ID to Glyph object or nil (if the glyph has no outline).

Public Instance Methods

[](glyph_id)

Returns the Glyph object for the given glyph ID. If the glyph has no outline (e.g. the space character), an empty Glyph object is returned.