fabricjs - How to make Fabric.js IText font NOT bold? -


in jsfiddle have itext fontweight: 'normal', still font displayed bold letters. how make text not bold?

javascript:

var canvas = new fabric.canvas('c');  var text = new fabric.itext('this text',{     left: 20,     top: 20,     fontfamily: 'arial',     fontweight: 'normal',     fontsize: 18,     stroke: 'black',     fill: 'black' });  canvas.add(text); 

the stroke effect makes appear bold.

the text has normal standard weight, here comparison without stroke effect.

var text = new fabric.itext('this text',{   left: 20,   top: 20,   fontfamily: 'arial',   fontweight: 'normal',   fontsize: 18,   fill: 'black' }); 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -