Fabric.js Text subscript Property
In this article, we are going to see how to change the subscript of the text canvas using Fabric.js. The canvas means the text written is movable, rotatable, resizable, and can be stretched. Further, the text itself cannot be edited like a textbox.
fabric.Text(text, subscript: Object );
Parameters: This property accepts a single parameter as mentioned above and described below:
- subscript: It defines the Object on the basis of which the subscript will be defined.
Below is the example that illustrates the use of subscript property in Fabric.js: