title: Calculate rendered text size in PIL
body: <p>How can I calculate the text size rendered by <code>text</code> method of an <code>ImageDraw</code> object in <code>PIL</code>?
  I would like to draw multiline text with a maximum box width or height for example, being able to calculate the width from the text would help me to decide where to cut the text before writing it on the image.</p>