I have been playing with Mariano Reingart's awesome port of fpdf to python
in Web2py gluon/contrib (http://code.google.com/p/pyfpdf/) and found a minor
bug that occurs when using addfont that causes it to look in

gluon/contrib/pyfpdf/font/

for added fonts and associated files but for fontname.z it looks in:

gluon/contrib/pyfpdf/font/font

If you create gluon/contrib/pyfpdf/font/font and place your fonts
corresponding fontname.z file in this directory it work just fine (In fact
it is kind of awesome!).

I did not find the location of the bug but I created a plugin at
https://code.google.com/p/uc-pyfpdf/
that can be used for testing if someone wants to check it out.

To reproduce the error message test using the plugin you can install it in a
new app (or use the one is comes with) and copy the font directory from the
plugin to the gluon/contrib implementation and test.

for example:

copy appname/static/plugin_uc_pyfpdf/pyfpdf/attic/font

to

gluon/contrib/pyfpdf/

Run the voa_super_simple function in the plugin controller to test.



Cheers,

Chris

-- 
Christopher Steel

Voice of Access



-- 
Christopher Steel

Voice of Access

Reply via email to