from fpdf import FPDF pdf.add_font('SolaimanLipi','','filename.ttf', uni=True)
RuntimeError: ERROR - Font file /content/drive/SolaimanLipi.ttf cannot be embedded due to copyright restrictions.
I have using python fpdf to write bangla in a pdf. But while i use SolaimanLipi font it shows me this error. How can i solve this?
Thanks for asking. I had similar issue while trying to create pdf file containing bengali fonts. I checked several fonts and the 'Bangla.ttf' worked for me. You may try the following code in python: