Also possible are a select few other names like (watch the correct spelling): “Arial”, “Times”, “Times Roman”. One of the PDF Base 14 Fonts or CJK fontnames. Not all parameters are ever required – see the below pseudo code explaining the logic how the parameters are evaluated.
The large number of parameters are used to locate font, which most closely resembles the requirements. Currently, it has no connection to how fonts are used in methods Page.insert_text() or Page.insert_textbox(), respectively.Ī Font object also contains useful general information, like the font bbox, the number of defined glyphs, glyph names or the bbox of a single glyph.Ĭlass API class Font _init_(self, fontname=None, fontfile=None, fontbuffer=None, script=0, language=None, ordering=-1, is_bold=0, is_italic=0, is_serif=0)įont constructor. It is required for the new class TextWriter and the new Page.write_text(). This class represents a font as defined in MuPDF ( fz_font_s structure).
Appendix 2: Considerations on Embedded Files.Recipes: Common Issues and their Solutions.