Generating images with text in them

Terry Hancock hancock at anansispaceworks.com
Thu Jul 21 21:08:32 EDT 2005


On Thursday 21 July 2005 05:23 am, Daren Russell wrote:
> I've just been playing around with this.  You can use truetype fonts with:
> 
> font = ImageFont.truetype("/path/to/font.ttf", 12)
> 
> from version 1.1.4
> 
> http://www.pythonware.com/library/pil/handbook/imagefont.htm for more

Wow, I didn't know about that new feature. I gotta use that. ;-)
I'd say that if you can do that, it's probably not worth messing with
the PIL fonts. There are lots of suitable free TrueType fonts available
on the web (many of which are also free-licensed, IIRC).

--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks  http://www.anansispaceworks.com




More information about the Python-list mailing list