PIL cutting off letters

Mitja Trampus nun at example.com
Tue Jun 19 17:23:30 EDT 2007


Matt Haggard wrote:
> I'm using PIL (Python Imaging Library) to generate button images.
> They consist of a left end image, a middle, repeating image and a
> right side image.... anyway, that's not important
> 
> I'm using a TTF font for the text of the button (Verdana.TTF) and it
> keeps cutting the bottom part of the the g's q's and y's off.

I've had the same problems. What worked for me was to use 
aggdraw instead of PIL's Draw class.
http://effbot.org/zone/aggdraw-index.htm

Mitja



More information about the Python-list mailing list