freetypy.TT_OS2¶
-
class
freetypy.TT_OS2¶ Information 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
versionfield is always set to 0xFFFF.Attributes
break_charThis is the Unicode encoding of the glyph that Windows uses as the break character. cap_heightThis metric specifies the distance between the baseline and the approximate height of uppercase letters measured in font units. default_charWhenever a request is made for a character that is not in the font, Windows provides this default character. family_classClassifies a font design as to its appearance. family_subclassClassifies a font design as to its appearance. first_char_indexThe minimum Unicode index in this font. last_char_indexThe maximum Unicode index in this font. max_contextThe maximum length of a target glyph context for any feature in this font. panoseThe PANOSE classification number. selectionA TT_FS_SELECTIONbitflag.typeFSTYPEbitflags indicating the licensing restrictions on a font.typo_ascenderThe typographic ascender for this font. typo_descenderThe typographic descender for this font. typo_line_gapThe typographic line gap for this font. vend_idIndentifies the font vendor. versionThe version of the TT_OS2table.weight_classA TT_WEIGHT_CLASSvalue.width_classA TT_WIDTH_CLASSvalue.win_ascentThe ascender metric for Windows. win_descentThe descender metric for Windows. x_avg_char_widthSpecifies the arithmetic average of the advance width of all of the 26 lowercase letters of the Latin alphabet and the space character. x_heightThis metric specifies the distance between the baseline and the approximate height of non-ascending lowercase letters measured in font units. y_strikeout_positionThe width of the strikeout line. y_strikeout_sizeThe size of the strikeout line. y_subscript_x_offsetSpecifies a font designer’s recommended horizontal offset for subscript characters. y_subscript_x_sizeMaps to the em square size of the font being used for a subscript. y_subscript_y_offsetSpecifies 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_sizeMaps to the emHeight of the font being used for a subscript. y_superscript_x_offsetSpecifies a font designer’s recommended horizontal offset for the superscript characters associated with this font. y_superscript_x_sizeMaps to the em square size of the font being used for a subscript. y_superscript_y_offsetSpecifies a font designer’s recommended vertical offset for superscript characeters. y_superscript_y_sizeMaps to the emHeight of the font being used for a subscript.