fabric.Text(text, scaleX: number);
Parameters: This function accept two parameters as mentioned above and described below:
- text: It specifies the text to be written.
- scaleX: It specifies the default horizontal scaling.
Example: We can use FabricJS to add default horizontal scaling to a canvas-like text as given below.