freetypy.TT_OS2

class freetypy.TT_OS2

Inf about the TrueType font, used on OS/2 and Microsoft Windows.

Note that we now support old Mac fonts which do not include an OS/2 table. In this case, the version field is always set to 0xFFFF.

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Attributes

break_char This is the Unicode encoding of the glyph that Windows uses as the break character.
cap_height This metric specifies the distance between the baseline and the approximate height of uppercase letters measured in font units.
default_char Whenever a request is made for a character that is not in the font, Windows provides this default character.
family_class Classifies a font design as to its appearance.
family_subclass Classifies a font design as to its appearance.
first_char_index The minimum Unicode index in this font.
last_char_index The maximum Unicode index in this font.
max_context The maximum length of a target glyph context for any feature in this font.
panose The PANOSE classification number.
selection A TT_FS_SELECTION bitflag.
type FSTYPE bitflags indicating the licensing restrictions on a font.
typo_ascender The typographic ascender for this font.
typo_descender The typographic descender for this font.
typo_line_gap The typographic line gap for this font.
vend_id Indentifies the font vendor.
version The version of the TT_OS2 table.
weight_class A TT_WEIGHT_CLASS value.
width_class A TT_WIDTH_CLASS value.
win_ascent The ascender metric for Windows.
win_descent The descender metric for Windows.
x_avg_char_width Specifies the arithmetic average of the advance width of all of the 26 lowercase letters of the Latin alphabet and the space character.
x_height This metric specifies the distance between the baseline and the approximate height of non-ascending lowercase letters measured in font units.
y_strikeout_position The width of the strikeout line.
y_strikeout_size The size of the strikeout line.
y_subscript_x_offset Specifies a font designer’s recommended horizontal offset for subscript characters.
y_subscript_x_size Maps to the em square size of the font being used for a subscript.
y_subscript_y_offset Specifies a font designer’s recommended vertical offset from the character baseline to the character baseline for subscript characters associated with this font.
y_subscript_y_size Maps to the emHeight of the font being used for a subscript.
y_superscript_x_offset Specifies a font designer’s recommended horizontal offset for the superscript characters associated with this font.
y_superscript_x_size Maps to the em square size of the font being used for a subscript.
y_superscript_y_offset Specifies a font designer’s recommended vertical offset for superscript characeters.
y_superscript_y_size Maps to the emHeight of the font being used for a subscript.