class HexaPDF::Font::TrueType::Table::Head

Parent
Extended With

The 'head' table contains global information about the font.

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

Attributes

bbox[RW]

The bounding box for all glyphs of the font in the form [xmin, ymin, xmax, ymax].

checksum_adjustment[RW]

The adjustment value for the checksum.

created[RW]

The creation time of the font.

flags[RW]

Various font flags. See Flags.

font_direction_hint[RW]

Represents an indication of the direction of the glyphs of the font.

0

Mixed directional font

1

Font with only left-to-right glyphs

-1

Font with only right-to-left glyphs

2

Font with left-to-right and neutral (e.g. punctuation) glyphs

-2

Font with right-to-left and neutral (e.g. punctuation) glyphs

font_revision[RW]

The revision of the font as set by the manufacturer (a Rational).

index_to_loc_format[RW]

Indicates the type of offset format used in the 'loca' table, 0 for short offsets, 1 for long offsets.

See: Loca

mac_style[RW]

Apple Mac style information.

modified[RW]

The modification time of the font.

smallest_readable_size[RW]

The smallest readable size in pixels per em for this font.

units_per_em[RW]

The number of units per em for the font. Should be a power of 2 in the range from 64 through 16384.

version[RW]

The version of the font (a Rational).

Public Instance Methods

checksum_valid?()

The checksum for the head table is calculated differently because the #checksum_adjustment value is not used during the calculation.

See: Table#checksum_valid?