Skip to content
Advertisement

Tag: pyfpdf

Problem importing fonts with FPDF using python

I’ve been trying to import specialty fonts beyond what is default included with the FPDF package with Python, using the pdf.add_font() command. The code below produces an error of an Undefined font, as though I didn’t just use pdf.add_font(). Below you can find a sample of my code, as well as proof that the relevant fonts are in the directory

Advertisement