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

NameTypeAccessDescription
metricslist[HMetric]Read

Methods

SignatureDescription
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)HMetricreturns anHMetric` object containing the advance width and left side bearing for the specified glyph ID

See Also