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

NameTypeAccessDescription
font_namestrRead/WriteGets or sets the font name.
full_namestrRead/WriteGets or sets the full name.
family_namestrRead/WriteGets or sets the family name.
weightstrRead/WriteGets or sets the weight.
italic_anglefloatRead/WriteGets or sets the italic angle.
is_fixed_pitchboolRead/WriteGets or sets the is fixed pitch.
font_bboxtuple[int, int, int, int]Read/WriteGets or sets the font bbox.
underline_positionintRead/WriteGets or sets the underline position.
underline_thicknessintRead/WriteGets or sets the underline thickness.
cap_heightfloatRead/WriteGets or sets the cap height.
x_heightfloatRead/WriteGets or sets the x height.
ascenderfloatRead/WriteGets or sets the ascender.
descenderfloatRead/WriteGets or sets the descender.
glyph_metricsdict[str, AfmGlyphMetric]Read/WriteGets or sets the glyph metrics.
kern_pairslist[tuple[str, str, int]]Read/WriteGets or sets the kern pairs.

See Also