[reportlab-users] Custom Font In TextField
Luke Bowes
luke.bowes at hotmail.co.uk
Fri Aug 19 06:35:27 EDT 2022
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20220819/66c701f9/attachment.htm>
More information about the reportlab-users
mailing list