Switched to embedded font ubuntu mono for the textareas for greater control of how much space text takes up.
Got embedded font working in the canvas, adjusted line heights of text to make the HTML version match up with the canvas version.