PIL PSDraw textsize method

Bauke Veenstra btveenstra at wanadoo.nl
Mon Sep 18 21:14:56 CEST 2006


Running the example from the excellent PIL handbook gives an error,
after these two lines:
ps.setfont("HelveticaNarrow-Bold", 36)
w, h, b = ps.textsize(title)
AttributeError: PSDraw instance has no attribute 'textsize'

Can someone tell me what's wrong, this error occurred on my Linux and on
my Windows system.

Regards,
Bauke



More information about the Python-list mailing list