HmtxTable
Overview
HmtxTable is a class in Aspose.Font FOSS for Python.
Description
HmtxTable is a class in the Aspose.Font FOSS library for Python that exposes 3 methods and 1 property for programmatic use.
Core capabilities include: list[hmetric]. These operations enable developers to integrate hmtxtable functionality directly into Python applications.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
metrics | list[HMetric] | Read |
Methods
| Signature | Description |
|---|---|
from_reader(r: BinaryReader, num_glyphs: int, number_of_hmetrics: int, table_length: int) → "HmtxTable" | parses the horizontal metrics (hmtx) table from a binary reader and returns anHmtxTable` instance |
to_bytes(number_of_hmetrics: int) → bytes | |
get_metric(gid: int) → HMetric | returns anHMetric` object containing the advance width and left side bearing for the specified glyph ID |