Hey!
When I want to print superscript 4 (and above) I get:
\venv\Lib\site-packages\pdfme\fonts.py", line 134, in <genexpr>
return sum(self.widths[char] for char in text) / 1000
~~~~~~~~~~~^^^^^^
KeyError: '⁴'
when I add '⁴' to the widths-dict, I get:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2074' in position 63: ordinal not in range(256)
Superscript 1,2,3 seem to be in 'latin'-encoding, but all others not. How can I print them in a PDF with pdfme?
Kind regards, Max
Hey!
When I want to print superscript 4 (and above) I get:
when I add '⁴' to the widths-dict, I get:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2074' in position 63: ordinal not in range(256)Superscript 1,2,3 seem to be in 'latin'-encoding, but all others not. How can I print them in a PDF with pdfme?
Kind regards, Max