[reportlab-users] Problem using FAQ example for embedding font

Gerry Reno greno at verizon.net
Sat Sep 20 09:42:33 EDT 2008


Putting my module back into the container I found that I needed to
modify 'pdfmetrics.py' to add a try/except block around 'registerEnc' in
'LoadMetrics' otherwise only one installation would be able to use the
font and the others would all fail with a FontError that the font
encoding was registered under a different vector. I added this code:

try:
registerEncoding(enc)
except FontError, e:
print "Warning: ",e


Regards,
Gerry



More information about the reportlab-users mailing list