hmtx: Horizontal Metrics table
The hmtx table is an OpenType table.
- class fontTools.ttLib.tables._h_m_t_x.table__h_m_t_x(tag: str | bytes | None = None)[source]
Bases:
DefaultTableHorizontal Metrics table
The
hmtxtable contains per-glyph metrics for the glyphs in aglyf,CFF ``, or ``CFF2table, as needed for horizontal text layout.See also https://learn.microsoft.com/en-us/typography/opentype/spec/hmtx
- headerTag = 'hhea'
- advanceName = 'width'
- sideBearingName = 'lsb'
- numberOfMetricsName = 'numberOfHMetrics'
- longMetricFormat = 'Hh'
- mergeMap = {'metrics': <function sumDicts>, 'tableTag': <function equal>}
- subset_glyphs(s)