Skip to content

Unicode fonts (add_font) with Templates? #1239

Answered by gmischler
professorlance asked this question in Q&A
Discussion options

You must be logged in to vote

Welcome to fpdf2, @professorlance !

The templates are entirely agnostic of font types. They will use whatever fonts have been added to the document beforehand.
As you will find confirmed in the documentation, the template instances themselves don't have an add_font() method. If you tried that, then an attribute error is inevitable.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@professorlance
Comment options

Answer selected by professorlance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants