[reportlab-users] Problem with some (not all) unicode symbols

16 views
Skip to first unread message

Бачо Киро

unread,
Jan 10, 2018, 9:25:32 AM1/10/18
to reportlab-users
My python code creates tables in PDF file. In header rows there are unicode symbols. Some of them are OK, but another are like square.

I use fonts Verdana and VerdanaB:
pdfmetrics.registerFont(TTFont('Verdana', 'Verdana.ttf'))
pdfmetrics
.registerFont(TTFont('VerdanaB', 'VerdanaB.ttf'))

Texts like mg/Nm³ and °C are visualized correctly. But texts like SO₂ and NOₓ does not. They look so: SO◻ and NO◻.
How I can fix it?

Reply all
Reply to author
Forward
0 new messages