问题内容: I have some code that allows me to toggle between text objects. I’d like to have the text objects include some styling, like Bold, Italic, etc for titles and such. text, however, am not sure how to accomplish this. Here’s my current code: var canvas = this.__canvas = new fabric.Canvas('c'); canvas.setHeight(300); canvas.setWidth(500); function textOne()