class HexaPDF::Font::TrueType::Table::Directory
The main table of an sfnt-housed font file, providing the table directory which contains information for loading all other tables.
See: developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6.html
Constants
- Entry
A single entry in the table directory.
Accessors:
- tag
-
The 4 byte name of the table as binary string.
- checksum
-
Checksum of the table.
- offset
-
Offset from the beginning of the file where the table can be found.
- length
-
The length of the table in bytes (without the padding).
- SELF_ENTRY
The fixed entry that represents the table directory itself.
Attributes
tag[R]
The type of file housed by the snft wrapper as a binary string. Two possible values are 'true' or 0x00010000 for a TrueType
font and 'OTTO' for an OpenType font.
Public Instance Methods
entry(tag)
click to toggle source
Returns the directory entry for the given tag or nil
if no such table exists.
# File lib/hexapdf/font/true_type/table/directory.rb, line 67 def entry(tag) @tables[tag] end