How to change character spacing of text canvas using Fabric.js ?
In this article, we are going to see how to change the character spacing of a text canvas using FabricJS. The canvas means text written is movable and can be stretched according to the requirement. Further, the text itself cannot be edited like a textbox.
fabric.Text(text, charSpacing: number);
Parameters: This function accepts two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- charSpacing: It specifies the spacing between the characters.
Program: This example uses FabricJS to change character spacing of text canvas-.