PIL & fixed-width fonts

Larry Bates lbates at syscononline.com
Fri Aug 2 18:58:02 EDT 2002


The fonts are the problem.  Some of the fonts I have downloaded don't have
good metrics files with them.  Let me know what font you need.  I have some
that seem to work that were on the Internet many months ago, but seem to
have disappeared now.

-Larry


"Marco" <hollenberg at mail.com> wrote in message
news:aie276$3rs$1 at news1.xs4all.nl...
> 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