[reportlab-users] ttfont checksum fails
crawfoer at gmail.com
Wed Dec 27 15:54:11 EST 2006
You might want to try webcore fonts for Linux, I've had success using them
on Ubuntu 6.10 and Redhat 9.
On 12/27/06, Tim Roberts <timr at probo.com> wrote:
> matt-lists at comnet.net.nz wrote:
> > I'm in the middle of putting together a function in an application I
> > to create reports in pdf format. The application has been translated
> into a
> > number of different languages, and so I need to generate a report using
> > font that has good non-latin character support. At the moment, I've
> > verdana.
> > ...
> > to register the font with reportlab (config_directory is a variable
> > the path to the directory where the verdana fonts I want to use are
> > However, on executing this code, I'm getting the following error:
> > Traceback (most recent call last):
> > ... File
> "/usr/lib/python2.4/site-packages/reportlab/pdfbase/ttfonts.py", line
> > 309, in checksumFile
> > raise TTFError('TTF file "%s": invalid checksum %s len: %d &3: %d' %
> > (self.filename
> > reportlab.pdfbase.ttfonts.TTFError: TTF
> > file "/home/matt/.superkaramba/lwp/verdana.ttf": invalid checksum
> > len: 149753 &3: 1
> > It appears that the checksum is failing.
> Verdana isn't part of Linux, so you must have copied it from a Windows
> system. Is it possible that you copied the font to your Linux system
> using FTP without using binary mode? My Windows verdana.ttf is 171,792
> bytes long.
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
> reportlab-users mailing list
> reportlab-users at reportlab.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reportlab-users