HmtxTable

Vue de l’ensemble

‘HmtxTable’ est une classe dans Aspose.Font FOSS pour Python.

Description

HmtxTable est une classe dans la bibliothèque Aspose.Font FOSS pour Python qui expose 3 méthodes et 1 propriété pour l’utilisation programmée.

Les capacités de base comprennent : ’list[hmetric]’.Ces opérations permettent aux développeurs d’intégrer la fonctionnalité hmtxtable directement dans les applications Python.

Propriétés

NameTypeAccessDescription
metricslist[HMetric]Read

méthodes

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

Voir aussi

  • Aspose.Font pour Python — Enterprise API Reference
 Français