-
Hi fpdf2 team, I can't seem to get the unicode to work properly. I am generating a dutch pdf and there is text with the letters é and ë. The pdf creator does not seem to understand them. I am using the Roboto font: However the same problem occurs with the Dejavu font. I also see that the uni=True part is deprecated, but no alternative is given. How should we implement unicode then? The tutorial seems to be dated as well since it mentions uni=True. I only need those two letters really so any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you please provide some minimal but fully functional Python code reproducing your issue,
Quoting the ChangeLog:
Sorry but where have you spotted any |
Beta Was this translation helpful? Give feedback.
-
I found the problem. I was not reading the file with the utf-8 encoding. Everything works now thanks for the help. I was referring to this page: But I understand now that there is no need for the uni=True option anymore. Sorry for the trouble. |
Beta Was this translation helpful? Give feedback.
Could you please provide some minimal but fully functional Python code reproducing your issue,
in order for use to be able to help you?
Quoting the ChangeLog:
uni=True
can now be removed from all calls toFPDF.add_font()
.If the value of the
fname
argument passed toadd_font()
ends with.ttf
, it is considered a TrueType font.