[reportlab-users] Font does not have cmap for Unicode (platform 3, encoding 1, format 4 or platform 0 any encoding format 4)

Jose Soares jo at sferacarta.com
Fri Feb 10 03:53:06 EST 2006


Hi all,

I installed an OCR B true type  but I cannot use it.
Could you please help me?

Traceback (most recent call last):
  File "pdf.py", line 10, in ?
    pdfmetrics.registerFont(TTFont('OCR', 'OCRb10n.ttf'))
  File "/usr/lib/python2.3/site-packages/reportlab/pdfbase/ttfonts.py", 
line 949, in __init__
    self.face = TTFontFace(filename, validate=validate)
  File "/usr/lib/python2.3/site-packages/reportlab/pdfbase/ttfonts.py", 
line 872, in __init__
    TTFontFile.__init__(self, filename, validate=validate)
  File "/usr/lib/python2.3/site-packages/reportlab/pdfbase/ttfonts.py", 
line 395, in __init__
    self.extractInfo(charInfo)
  File "/usr/lib/python2.3/site-packages/reportlab/pdfbase/ttfonts.py", 
line 602, in extractInfo
    raise TTFError, 'Font does not have cmap for Unicode (platform 3, 
encoding 1, format 4 or platform 0 any encoding format 4)'
reportlab.pdfbase.ttfonts.TTFError: Font does not have cmap for Unicode 
(platform 3, encoding 1, format 4 or platform 0 any encoding format 4)

Thanks in advance,
Jo



More information about the reportlab-users mailing list