Font:: Type1:: FontMetrics
Represents the information stored in an AFM font metrics file for a
Type1 font that is needed for working with that font in context of the PDF format.
Ascender of the font.
The font bounding box as array of four numbers, specifying the x- and y-coordinates of the bottom left corner and the x- and y-coordinates of the top right corner.
The y-value of the top of the capital H (or 0 or nil if the font doesn't contain a capital H).
A string describing the character set of the font.
Descender of the font.
Dominant width of horizontal stems.
Dominant width of vertical stems.
A string indicating the default encoding used for the font.
Name of the typeface family to which the font belongs.
PostScript name of the font.
Full text name of the font.
Boolean specifying if the font is a fixed pitch (monospaced) font.
Angle (in degrees counter-clockwise from the vertical) of the dominant vertical strokes of the font.
Nested mapping of kerning pairs, ie. each key is a character name and each value is a mapping from the second character name to the kerning amount.
Nested mapping of ligature pairs, ie. each key is a character name and each value is a mapping from the second character name to the ligature name.
Distance from the baseline for centering underlining strokes.
Stroke width for underlining.
A string describing the weight of the font.
The y-value of the top of the lowercase x (or 0 or nil if the font doesnt' contain a lowercase x)
Public Instance Methods
Returns the weight of the font as a number.
The return value 0 is used if the weight class cannot be determined.