I am not 100% sure if this is what you even after that, since the question is fuzzy, but do you know that there is a fourth parameter for fillText
? It is suitable for text up to maximum width. I updated your jsFiddle here http://jsfiddle.net/fknjz/32/ .
I also added clearRect
to clear the areas under the texts so you can refresh the view without messing up.
source share