我尝试将DejaVuCondensed.ttf复制到pyfpdf/font/中,但尝试失败。
>>> from pyfpdf import *
>>> p = FPDF()
>>> p.add_font('dejavucondensed')
SyntaxError: Non-ASCII character '\xfd' in file pyfpdf/font/dejavucondensed.font
on line 2,
but no encoding declared; see http://www.python.org/peps/pep-0263.html for details