CompositeFontMetric

CompositeFontMetric

Overview

CompositeFontMetric is a class in Aspose.PDF FOSS for Python.

Advance metrics for a composite (Type0) font.

Properties: ascent, code_to_cid, code_to_text, codec, descent, vertical, and 2 more.

Properties

NameTypeAccessDescription
width_ofCallable[[int], float]ReadGets the width of.
code_to_textMapping[bytes, str]ReadGets the code to text.
code_to_cidCallable[[bytes], int | None] | NoneReadGets the code to cid.
verticalboolReadGets the vertical.
vertical_metrics_ofCallable[[int], tuple[float, float, float]] | NoneReadGets the vertical metrics of.
codecAnyReadGets the codec.
ascentfloatReadGets the ascent.
descentfloatReadGets the descent.

See Also