Gungi Mahesh

Gungi Mahesh

22 Articles Published

Articles by Gungi Mahesh

Page 3 of 3

How to change character spacing of text canvas using Fabric.js?

Gungi Mahesh
Gungi Mahesh
Updated on 21-Feb-2023 898 Views

The fabric.Text object of Fabric.JS is used to change the corner style of a canvas-type text. Text class of Fabric.js provides the text abstraction by using the fabric.Text object, which allows us to work with text in an object-oriented way. Comparing to the canvas class the Text class provides the rich functionality. The text object contains the different properties, but to change the character spacing of a text canvas can be done using one of the property i.e., charSpacing. This property sets the spacing between characters in pixels. You can also use the setCharSpacing method to changing the spacing of ...

Read More

How to change border-color of a canvas text using Fabric.js?

Gungi Mahesh
Gungi Mahesh
Updated on 21-Feb-2023 789 Views

The fabric.Text object of Fabric.JS is used to change the corner style of a canvas-type text. Text class of Fabric.js provides the text abstraction by using the fabric.Text object, which allows us to work with text in an object-oriented way. Comparing to the canvas class the Text class provides the rich functionality. The text object contains the different properties, but to change the border color of a text canvas can be done using one of the color property i.e., borderColor. The borderColor property of a Fabric.js Text object specifies the border color of the object. Any valid CSS color value ...

Read More
Showing 21–22 of 22 articles
« Prev 1 2 3 Next »
Advertisements