How to get width of text on an HTML canvas?
In this video you will learn how to measure the width of text on an HTML5 canvas using JavaScript.
We take a look at the measureText method and show how to draw an image on the right side of a text string using the text-width as an offset.