PIL & fixed-width fonts

Marco hollenberg at mail.com
Fri Aug 2 15:35:40 CEST 2002


Hi!

I'm trying to use PIL (http://www.pythonware/products/pil/) to paste text
over existing images. I downloaded some PIL fonts from
http://www.cs.usyd.edu.au/~piers/python/pilfonts.html (72 dpi). Everything
works fine, EXCEPT:

If I use variable-width fonts (for instance Arial) I don't seem to be able
to display spaces. Printing "AAA   AAA" just yields "AAAAAA" on my image :-(

If I use Courier it works. Problem solved I hear you say! But I'd REALLY
like to use other fonts!

Can anybody help?

Regards,
Marco





More information about the Python-list mailing list