Closed msetina closed 4 months ago
The fact that addsign
on the CLI doesn't always correctly render text without a font configured isn't really a bug, but more of a natural limitation in the file format. The rub is that unless you supply a font file that has the glyphs you need so that pyHanko can subset/embed the font properly, you're going to have to rely on one of the "default" fonts that is available in most/all viewers. These default fonts (a) have limited character sets to begin with, and (b) can differ from viewer to viewer, so the result is unpredictable no matter what.
So, long story short, you need a font file set up in your config file, otherwise this kind of thing doesn't work.
(This is in the FAQ, by the way ;) https://pyhanko.readthedocs.io/en/latest/faq.html#i-want-to-put-unicode-text-in-my-signatures-but-i-m-only-seeing-blanks-what-gives )
Describe the bug Using simple addsign from example in documentation produces name texts without international characters
To Reproduce A certificate with international characters in name fields is needed
Screenshots
Example from code:
![image](https://github.com/MatthiasValvekens/pyHanko/assets/7229754/57237f1f-d118-4cae-a4d9-6e0a2adab85a)
Environment (please complete the following information):
Additional context