[reportlab-users] ttfont checksum fails

Reggie Crawford 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.

http://avi.alkalay.net/software/webcore-fonts/

Reggie

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

> maintain

> > 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

> a

> > font that has good non-latin character support. At the moment, I've

> chosen

> > verdana.

> > ...

> > to register the font with reportlab (config_directory is a variable

> holding

> > the path to the directory where the verdana fonts I want to use are

> held).

> > 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

> ,hex32(checkSum),len(self._ttf_data),(len(self._ttf_data)&3)))

> > reportlab.pdfbase.ttfonts.TTFError: TTF

> > file "/home/matt/.superkaramba/lwp/verdana.ttf": invalid checksum

> 0XBBB0AFBA

> > 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

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20061227/b06cdf8c/attachment.html


More information about the reportlab-users mailing list