Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我添加了字体 calibri.fft、calibrii.fft 和 calibrib.fft,但错误仍然存在。
pdf.add_font('Calibri','','Calibri.ttf',uni=True)
pdf.add_font('Calibri I','','Calibrii.ttf',uni=True)
pdf.add_font('Calibri B','','Calibrib.ttf',uni=True)
下划线工作正常。
看起来我搞砸了我的语法,使用以下语法修复它:
pdf.add_font('Calibri','I','Calibrii.ttf',uni=True)
pdf.add_font('Calibri','B','Calibrib.ttf',uni=True)