views:

211

answers:

1

What I need pyCairo to do is :

  • generate an image of size 100x100 containing some text and an image from filesystem as background
  • the text should be within a box which has text wrapping of size 20x20 with bottom left corner at (40,40).
  • save this image
A: 

You need to find a way to get the Pango context and set pango.Layout.set_wrap() and pango.Layout.set_width().

joeforker