I am trying to change the font attribute for text in fabric.js.
Here is my fiddle: http://jsfiddle.net/mvprzy/szzGa/
I believe this part of the fabric script should work, but isn't:
var fontControl = $('font-control');
fontControl.onchange = function () {
fabric.Text.set('fontFamily', font-control.value);
canvas.renderAll();
};
What am I doing wrong?