[reportlab-users] registerFont stays how long in memory? what s the best place to register a font?

Andy Robinson andy at reportlab.com
Thu Apr 15 04:25:39 EDT 2010


On 14 April 2010 23:41, Thomas Kremmel <thomasspin at gmail.com> wrote:

> I really have no clue what is wrong and I'm wondering whether this font

> loading is maybe buggy?


I doubt it's the font loading per se, as we have been serving many
hundreds of thousands of PDFs per month out of all Django versions
since it was launched, and each document needs to load custom fonts.
A few more random questions....

Is it mod_python, FastCGI, something else? We need to know a bit
about process lifetimes

Are you able to take out the error handling and get us the full traceback?

In the cases where setFont failed, did you get a message from the
preceding registerFont call too?

Is there just one machine, or some kind of a cluster?

Are there other calls to registerFont anywhere else in the program?
Maybe if something is 're-registering' while something else is trying
to use it there could be a problem?

Can you reproduce this problem with a 'hello-world' style
self-contained view, so we could try it here?



--
Andy


More information about the reportlab-users mailing list