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