Fabric.js | Text skewX Property
In this article, we are going to see how to add a horizontal skew to the text canvas using FabricJS. The canvas means text written is movable, rotatable, resizable, and can be stretched. But in this article, we will add horizontal skew. Further, the text itself cannot be edited like a textbox.
fabric.text(text :string, skewX: number);
Parameters: This property accepts two parameters as mentioned above and described below:
- text: It specifies the text content.
- skewX: It specifies the horizontal skew.
Program: This example uses FabricJS to add horizontal skew to the text canvas.