title: Cannot set canvas width and change font at the same time?
body: <p><a href="http://jsfiddle.net/sLk72mud/" rel="nofollow noreferrer">http://jsfiddle.net/sLk72mud/</a></p>
  <p>Inn the jsfiddle, the call to measureText that sets the canvas width:</p>
  <pre><code>tCtx.canvas.width = tCtx.measureText(this.value).width;
  </code></pre>
  <p>overwrites the font size:</p>
  <pre><code>tCtx.font = &quot;25px serif&quot;
  </code></pre>
  <p>If I remove the call to measureText, then the canvas uses the font size I expect. Unfortunately I then have to guess on how wide to make my canvas. Why is this and is there a better way to do it?</p>