class HexaPDF::Font::TrueType::Table::OS2

Parent
Extended With

The ‘OS/2’ table contains information required by Windows.

Some attributes may be nil when read from a file depending on the version of the table.

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

Attributes

break_char[RW]

The break character used by Windows.

cap_height[RW]

The distance between the baseline and the approximate height of uppercase letters.

code_page_range[RW]

The code page character range.

default_char[RW]

The default character displayed by Windows to represent an unsupported character.

family_class[RW]

Classification of the font-family design.

first_char_index[RW]

The minimum Unicode index in this font.

last_char_index[RW]

The maximum Unicode index in this font.

lower_point_size[RW]

The lowest size at which the font starts to be used.

max_context[RW]

The maximum length of an OpenType context for any feature in this font.

panose[RW]

Describes the visual characteristics of the given typeface.

selection[RW]

Information concerning the nature of the font patterns.

strikeout_position[RW]

Position of the strikeout stroke relative to the baseline.

strikeout_size[RW]

Width of the strikeout stroke.

subscript_x_offset[RW]

Recommended horizontal offset for subscripts.

subscript_x_size[RW]

Recommended horizontal size in pixels for subscripts

subscript_y_offset[RW]

Recommended vertical offset from the baseline for subscripts.

subscript_y_size[RW]

Recommended vertical size in pixels for subscripts

superscript_x_offset[RW]

Recommended horizontal offset for superscripts.

superscript_x_size[RW]

Recommended horizontal size in pixels for superscripts

superscript_y_offset[RW]

Recommended vertical offset from the baseline for superscripts.

superscript_y_size[RW]

Recommended vertical size in pixels for superscripts

type[RW]

Characteristics and properties of this font.

typo_ascender[RW]

The typographic ascender. May not be the same as the ascender in the ‘hhea’ table.

typo_descender[RW]

The typographic descender. May not be the same as the ascender in the ‘hhea’ table.

typo_line_gap[RW]

The typographic line gap. May not be the same as the ascender in the ‘hhea’ table.

unicode_range[RW]

Describes the Unicode ranges covered by the font.

upper_point_size[RW]

The highest size at which the font starts to be used.

vendor_id[RW]

The four character identifier of the font vendor.

version[RW]

The version of the table.

weight_class[RW]

Visual weight of stroke in glyphs.

width_class[RW]

Relative change from the normal aspect ratio (width/height).

win_ascent[RW]

The ascender metric for Windows.

win_descent[RW]

The descender metric for Windows.

x_avg_char_width[RW]

AVerage weighted advance width of lower case letters and space.

x_height[RW]

The distance between the baseline and the approximate height of non-ascending lowercase letters.