How to Create Text on Canvas using Fabric.js ?
In this article, we are going to see how to create a text on canvas using FabricJS. The text on canvas means text written is movable and can be stretched according to requirement. Further, the text itself cannot be edited like a textbox.
Parameters: This function accepts two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- options: It specifies the additional options to be applied.
Example: This example uses FabricJS to create simple editable text on canvas.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.