Reputation: 2860
Is this an issue/bug ? try on the offical demo site:
http://fabricjs.com/kitchensink OR http://fabricjs.com/loadfonts
After new input, you are not able to change font-Family anymore or other Font settings like font size. Shadows still works.
?? why this?
Upvotes: 1
Views: 1217
Reputation: 876
Very Good catch.
in the above examples, if you select textbox and see console
canvas.getActiveObject().styles
This will return the object of multiple styles becase those styles are assigned to per char of string/textbox.
If you want to change the fontFamily or any style after changing text. just asign styles = null as below.
You can test this in http://fabricjs.com/kitchensink also in developer tool.
canvas.getActiveObject().styles = null
Upvotes: 3