Forums

unicode TTF (for fpdf generator)

Hi,

does anyone tried to acomplish example http://code.google.com/p/pyfpdf/wiki/Unicode I use web2py, which includes pyfpdf, but unicode for word like "Ąžuolas" is problematic,

there is recipy u"Hélló wórld".encode('latin-1') - but for "Ąžuolas" it gives error https://groups.google.com/d/msg/web2py/KJDeQoLKw-M/dWa1eH8DskEJ

so I hopw TTF way would be better - but I'd need to have fonts installed on system.

SOLVED:

just needed to create directory / > home > jurgis > web2py > gluon > contrib > fpdf > font

and place needed ttf files insited it :)

Thanks for actually posting the solution as opposed to just saying "solved it!" - it makes the forums a better resource.

And welcome to our PA community!!