AfmData
Overview
AfmData is a class in Aspose.Font FOSS for Python.
AfmData.font_name is the PostScript name of the font extracted from the AFM file.
Properties: ascender, cap_height, descender, family_name, font_bbox, font_name, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
font_name | str | Read/Write | Gets or sets the font name. |
full_name | str | Read/Write | Gets or sets the full name. |
family_name | str | Read/Write | Gets or sets the family name. |
weight | str | Read/Write | Gets or sets the weight. |
italic_angle | float | Read/Write | Gets or sets the italic angle. |
is_fixed_pitch | bool | Read/Write | Gets or sets the is fixed pitch. |
font_bbox | tuple[int, int, int, int] | Read/Write | Gets or sets the font bbox. |
underline_position | int | Read/Write | Gets or sets the underline position. |
underline_thickness | int | Read/Write | Gets or sets the underline thickness. |
cap_height | float | Read/Write | Gets or sets the cap height. |
x_height | float | Read/Write | Gets or sets the x height. |
ascender | float | Read/Write | Gets or sets the ascender. |
descender | float | Read/Write | Gets or sets the descender. |
glyph_metrics | dict[str, AfmGlyphMetric] | Read/Write | Gets or sets the glyph metrics. |
kern_pairs | list[tuple[str, str, int]] | Read/Write | Gets or sets the kern pairs. |