EffEPi / fabric.curvedText

Allows you to create curved text - extension to fabric.js
43 stars 41 forks source link

Change fontWeight or textDecoration doesn't update the text #3

Closed EffEPi closed 10 years ago

EffEPi commented 11 years ago

Seems like this happens only when the property is changed by assignment, but it works with "set":

curvedText.fontWeight = 'bold';         //doesn't work
curvedText.set('fontWeight','bold');    //works
EffEPi commented 11 years ago

This happens with Stroke and strokeWidth as well, and I assume that this is happening with all the other settings when the "set" function is not called

maza23 commented 10 years ago

@EffEPi how do we change the font-family?

EffEPi commented 10 years ago

you should be able to change the same way you change it on the text. I build it to use the same properties