Fabric.js – how to remove extra spaces from i-text for non-English languages like hindi, gujarati, etc?

when editing the text or writing the text in the Gujarati language the space is increasing while entering each letter. I want to remove extra space from i-text while typing in non-English languages like hindi, gujarati, etc.

Actual Result :

sample image 1

sample image 2

Expected Result :

I-text box size should be same as per the content it has.