SyntaxFix
Write A Post
Hire A Developer
Questions
You can get a very close approximation of the vertical height by checking the length of a capital M.
ctx.font = 'bold 10px Arial'; lineHeight = ctx.measureText('M').width;