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
| Name | Type | Access | Description |
|---|---|---|---|
units_per_em | int | Read | Gets the units per em. |
ascender | int | Read | Gets the ascender. |
descender | int | Read | Gets the descender. |
line_gap | int | Read | Gets the line gap. |
advance_width_max | int | Read | Gets the advance width max. |
underline_position | int | Read | Gets the underline position. |
underline_thickness | int | Read | Gets the underline thickness. |