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
Post a Comment