[reportlab-users] Problem with bar code fonts
S Raghavjee
reportlab-users@reportlab.com
Mon, 27 Oct 2003 10:06:09 +0200
Hi everyone,
I'm having a problem using a truetype font called 3of9.ttf. It gives me
the following error:
TTFError: Font does not have cmap for Unicode (platform 3, encoding 1, format 4 or platform 0 any encoding format 4)
I've tried using a different truetype font like Arial for example, and
that seems to work okay. Is there anything I can do to make the font
work, or does anyone have an alternate font I could use?
It looks like the font can't handle Unicode text or something, but the
error is raised when on the line:
pdfmetrics.registerFont(TTFont('Barcode', 'C:\\WINDOWS\\Fonts\\3of9.TTF'))
before I've even started making the PDF.
I'm not sure about the policy on attachments, so I haven't attached the
font. If it's okay I can.
Thanks for any help,
Shayan Raghavjee