Is there a way to only change the font size of a canvas context without having to know/write the font family.
var ctx = document.getElementById(\"canvas\").
A cleaner way to not worry about scraping every other parameter:
canvas.style.font = canvas.getContext("2d").font; canvas.style.fontSize = newVal + "px"; canvas.getContext("2d").font = canvas.style.font;