class HexaPDF:: Font:: Type1:: Font
Parent | Object |
---|---|
Extended With |
Forwardable |
Represents a Type1
font.
This class abstracts from the specifics of the Type1
font and allows working with it in a standardized way.
The following method calls are forwarded to the contained FontMetrics
object:
-
font_name
-
full_name
-
family_name
-
weight
-
weight_class
-
font_bbox
-
italic_angle
-
ascender
-
descender
-
cap_height
-
x_height
-
horizontal_dominant_width
-
vertical_dominant_width
Attributes
The associated FontMetrics
object.
Public Class Methods
Public Instance Methods
Returns the built-in encoding of the font.
Returns a set of features this font supports.
For Type1
fonts, the features that may be available :kern and :liga.
Returns the name/id of the missing glyph, i.e. .notdef.
Returns the distance from the baseline to the top of the strikeout line.
Returns the thickness of the strikeout line.
Returns the distance from the baseline to the top of the underline.