freetypy.TT_HoriHeader¶
-
class
freetypy.TT_HoriHeader¶ A structure used to model a TrueType horizontal header (‘hhea’).
Attributes
advance_width_maxThis field is the maximum of all advance widths found in the font. ascenderThe font’s ascender, i.e., the distance from the baseline to the top-most of all glyph points found in the font. caret_offsetcaret_slope_riseThe rise coefficient of the cursor’s slope of the cursor (slope=rise/run). caret_slope_runThe run coefficient of the cursor’s slope. descenderThe font’s descender, i.e., the distance from the baseline to the bottom-most of all glyph points found in the font. line_gapThe font’s line gap, i.e., the distance to add to the ascender and descender to get the BTB, i.e., the baseline-to-baseline distance for the font. metric_data_formatAlways 0. min_left_side_bearingThe minimum left side bearing of all glyphs within the font. min_right_side_bearingThe minimum right side bearing of all glyphs within the font. number_of_hmetricsNumber of HMetrics entries in the ‘hmtx’ table – this value can be smaller than the total number of glyphs in the font. versionThe table version. xmax_extentThe maximum horizontal extent (i.e., the ‘width’ of a glyph’s bounding box) for all glyphs in the font.