PIL PSDraw textsize method

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bauke Veenstra

    #1

    PIL PSDraw textsize method

    Running the example from the excellent PIL handbook gives an error,
    after these two lines:
    ps.setfont("Hel veticaNarrow-Bold", 36)
    w, h, b = ps.textsize(tit le)
    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
Working...