class HexaPDF::Type::Font

Parent

Represents a generic font object.

This class is the base class for all font objects, be it simple fonts or composite fonts.

Public Instance Methods

bounding_box()

Returns the bounding box of the font or nil if it is not found.

embedded?()

Returns true if the font is embedded.

font_file()

Returns the embeeded font file object or nil if the font is not embedded.

must_be_indirect?()

Font objects must always be indirect.

to_utf8(code)

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.