Skip to content

Trouble with unicode #366

Answered by Lucas-C
omerfkati asked this question in Q&A
Mar 15, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

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.

Could you please provide some minimal but fully functional Python code reproducing your issue,
in order for use to be able to help you?

I also see that the uni=True part is deprecated, but no alternative is given. How should we implement unicode then?

Quoting the ChangeLog:

uni=True can now be removed from all calls to FPDF.add_font().
If the value of the fname argument passed to add_font() ends with .ttf, it is considered a TrueType font.

The tutorial seems to be dated as well since it mentions uni=True. I only ne…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Lucas-C
Comment options

You must be logged in to vote
1 reply
@Lucas-C
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants