Can I convert text to uppercase when drawing it into the canvas tag?
textTransform="uppercase" doesn’t seem to work, and the canvas tag doesn’t inherit CSS text-transform:uppercase.
The text is coming from a variable whose contents I don’t have control over, so I can’t just write it uppercase to start with.
I’m not sure what you mean by don’t have control over a variable.
fillText(variable.toUpperCase(), x, y)is what you’d do.