[reportlab-users] Custom Font In TextField

17 views
Skip to first unread message

Luke Bowes

unread,
Aug 19, 2022, 6:35:31 AM8/19/22
to reportl...@lists2.reportlab.com
I'm trying to use a different font other than the default 14 in a TextField but keep getting this error

ValueError: form font name, 'Calibri', is not one of the standard 14 fonts

I register the font

pdfmetrics.registerFont(TTFont('Calibri', 'Calibri.tff'))
but when i choose the font in the TextField I get the error


Any idea where I am going wrong please?
Reply all
Reply to author
Forward
0 new messages