title: HTML5 Canvas typewriter effect with word wrapping?
body: <p>I'm trying to get an animated typewriter effect on a HTML5 Canvas but I'm really struggling with Word Wrapping.</p>
  
  <p>Here's my Shapes.js in a Gist: <a href="https://gist.github.com/Jamesking56/0d7df54473085b3c5394" rel="nofollow">https://gist.github.com/Jamesking56/0d7df54473085b3c5394</a></p>
  
  <p>In there, I've created a Text object which has lots of methods. One of which is called <code>typeText()</code>.</p>
  
  <p><code>typeText()</code> basically starts off the typewriting effect but it keeps on falling off the edge and I'm really struggling to find a way of fixing word wrapping.</p>
  
  <p>Can anybody guide me on whats the best way to do this?</p>