class HexaPDF:: Type:: Font
| Parent | HexaPDF::Dictionary |
|---|
Represents a generic font object.
This class is the base class for all font objects, be it simple fonts or composite fonts.
Field Definitions
| Name | Type/Allowed Values | Required | Default Value |
|---|---|---|---|
| Type | Symbol | true | :Font |
| ToUnicode | HexaPDF::Stream or Hash | false | nil |
Public Instance Methods
Returns the bounding box of the font or nil if it is not found.
Returns true if the font is embedded.
Returns the embeeded font file object or nil if the font is not embedded.
Retrieves the font wrapper that is needed when this font is used for text output. Returns nil if this font can’t be used for text output.
Note: For internal use only!
See: HexaPDF::Font
Sets the font wrapper.
See: font_wrapper
Returns the glyph scaling factor for transforming from glyph space to text space.
Returns the UTF-8 string for the given character code, or calls the configuration option ‘font.on_missing_unicode_mapping’ if no mapping was found.