FontMetrics

Overview

FontMetrics is a class in Aspose.Font FOSS for Python.

FontMetrics exposes key typographic values such as units_per_em, ascender, descender, and line_gap for layout calculations.

Properties: advance_width_max, ascender, descender, line_gap, underline_position, underline_thickness, and 1 more.

Properties

NameTypeAccessDescription
units_per_emintReadGets the units per em.
ascenderintReadGets the ascender.
descenderintReadGets the descender.
line_gapintReadGets the line gap.
advance_width_maxintReadGets the advance width max.
underline_positionintReadGets the underline position.
underline_thicknessintReadGets the underline thickness.

See Also