freetypy.TT_HoriHeader

class freetypy.TT_HoriHeader

TrueType horizontal header (‘hhea’).

__init__()

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

Attributes

advance_width_max This field is the maximum of all advance widths found in the font.
ascender The font’s ascender, i.e., the distance from the baseline to the top-most of all glyph points found in the font.
caret_offset
caret_slope_rise The rise coefficient of the cursor’s slope of the cursor (slope=rise/run).
caret_slope_run The run coefficient of the cursor’s slope.
descender The font’s descender, i.e., the distance from the baseline to the bottom-most of all glyph points found in the font.
line_gap The 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_format Always 0.
min_left_side_bearing The minimum left side bearing of all glyphs within the font.
min_right_side_bearing The minimum right side bearing of all glyphs within the font.
number_of_hmetrics Number of HMetrics entries in the ‘hmtx’ table – this value can be smaller than the total number of glyphs in the font.
version The table version.
xmax_extent The maximum horizontal extent (i.e., the ‘width’ of a glyph’s bounding box) for all glyphs in the font.