1👍
Depending on the fiddle , you’re setting the text font size in pixels ,
why not trying to change to em
instead of px
...
var fontSize = (height / 100).toFixed(2);
ctx.font = fontSize + "em"; //<-------- here
...
Source:stackexchange.com
1👍
Depending on the fiddle , you’re setting the text font size in pixels ,
why not trying to change to em
instead of px
...
var fontSize = (height / 100).toFixed(2);
ctx.font = fontSize + "em"; //<-------- here
...