class HexaPDF:: Font:: TrueType:: Font
Parent | Object |
---|
Represents a font in the TrueType
font file format.
Constants
- DEFAULT_CONFIG¶
The default configuration:
- font.ttf.table_mapping
-
The default mapping from table tag as symbol to table class name.
- font.ttf.unknown_format
-
Action to take when encountering unknown subtables. Can either be :ignore which ignores them or :raise which raises an error.
Attributes
The IO stream associated with this file.
Public Class Methods
Public Instance Methods
Returns the table instance for the given tag (a symbol), or nil
if no such table exists.
Returns the ascender of the font.
Returns the bounding of the font.
Returns the cap height of the font.
Returns the descender of the font.
Returns the font directory.
Returns the family name of the font.
Returns a set of features this font supports.
Features that may be available are for example :kern or :liga.
Returns the PostScript font name.
Returns the full name of the font.
Returns the italic angle of the font, in degrees counter-clockwise from the vertical.
Returns th glyph ID of the missing glyph, i.e. 0.
Returns the distance from the baseline to the top of the strikeout line.
Returns the stroke width for the strikeout line.
Returns the distance from the baseline to the top of the underline.
Returns the stroke width for the underline.
Returns the weight of the font.
Returns the x-height of the font.