When I initially create a fabricjs i-text object in a new window, the cursor works perfectly. However, upon loading a saved JSON file, the cursor no longer functions as expected. I am utilizing the league_gothic font.
Please refer to the image below showing the issue with the cursor (3rd character). https://i.sstatic.net/sxWyv.png
Saving code snippet:
savejson = JSON.stringify(canvas.fabric.toJSON())
Loading Code:
canvas.fabric.loadFromJSON(loadjson, function(){
...
}
UPDATE: Upon inspecting the i-text object using console.log, I noticed the cursoroffsetCache variable. I am unsure of how to address this issue. Has anyone else encountered a similar problem?