title: Text wrap in a <canvas> element
body: <p>I am trying to add text on an image using the <code>&lt;canvas&gt;</code> element. First the image is drawn and on the image the text is drawn. So far so good.</p>
  
  <p>But where I am facing a problem is that if the text is too long, it gets cut off in the start and end by the canvas. I don't plan to resize the canvas, but I was wondering how to wrap the long text into multiple lines so that all of it gets displayed. Can anyone point me at the right direction?</p>