class HexaPDF:: Document:: Fonts
Parent | Object |
---|
This class provides utility functions for working with fonts. It is available through the HexaPDF::Document#fonts
method.
Public Class Methods
Public Instance Methods
add(name, **options) → font
¶
Adds the font to the document and returns it (using the font loaders specified with the configuration option ‘font_loaders’).
If a font with the same parameters has been loaded before, the cached font object is used.