title: Text length with dojo gfx
body: <p>While rendering text with dojo's gfx, is there a way to tell how much space the text would take, just in case I need to wrap it so it fits a given width?
  How would you manage to print text of arbitrary lengths if you had to make them fit areas of restricted width?</p>
  
  <p><strong>Update</strong>: Sorry, I should have mentioned I need to do the wrapping on the server side. My app has to figure out size and position of all elements and then render the gfx script that ultimately draws them. I know the font and font size I'll use with gfx. Wrapping a string would result in rendering multiple createText calls. The question is, how do I split the string? (This should be trivial if the font was fixed-width)</p>
  
  <p>Thanks!</p>