{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/1709","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/1709/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/1709/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/1709/events","html_url":"https://github.com/kangax/fabric.js/issues/1709","id":44260640,"number":1709,"title":"IText cursor position off for certain fonts","user":{"login":"jafferhaider","id":793773,"avatar_url":"https://avatars.githubusercontent.com/u/793773?v=3","gravatar_id":"","url":"https://api.github.com/users/jafferhaider","html_url":"https://github.com/jafferhaider","followers_url":"https://api.github.com/users/jafferhaider/followers","following_url":"https://api.github.com/users/jafferhaider/following{/other_user}","gists_url":"https://api.github.com/users/jafferhaider/gists{/gist_id}","starred_url":"https://api.github.com/users/jafferhaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jafferhaider/subscriptions","organizations_url":"https://api.github.com/users/jafferhaider/orgs","repos_url":"https://api.github.com/users/jafferhaider/repos","events_url":"https://api.github.com/users/jafferhaider/events{/privacy}","received_events_url":"https://api.github.com/users/jafferhaider/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kangax/fabric.js/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/kangax/fabric.js/labels/itext","name":"itext","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-09-29T06:17:46Z","updated_at":"2015-06-12T05:12:09Z","closed_at":null,"body":"The cursor moves to the left/right of the actual place where characters are added. This only seems to happen for certain fonts and certain characters.\r\n\r\nTo recreate:\r\n1. Go to http://fabricjs.com/kitchensink\r\n2. Select an IText and select the **Plaster** font\r\n3. Type different characters and notice difference between where cursor is rendered and where new characters are added.\r\n\r\nDoesn't seem to be effected by scale. Seems to be worse on Chrome OSX than Chrome Windows.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4950373-itext-cursor-position-off-for-certain-fonts?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F23217&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/111360717","html_url":"https://github.com/kangax/fabric.js/issues/1709#issuecomment-111360717","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/1709","id":111360717,"user":{"login":"erlik28","id":5807388,"avatar_url":"https://avatars.githubusercontent.com/u/5807388?v=3","gravatar_id":"","url":"https://api.github.com/users/erlik28","html_url":"https://github.com/erlik28","followers_url":"https://api.github.com/users/erlik28/followers","following_url":"https://api.github.com/users/erlik28/following{/other_user}","gists_url":"https://api.github.com/users/erlik28/gists{/gist_id}","starred_url":"https://api.github.com/users/erlik28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erlik28/subscriptions","organizations_url":"https://api.github.com/users/erlik28/orgs","repos_url":"https://api.github.com/users/erlik28/repos","events_url":"https://api.github.com/users/erlik28/events{/privacy}","received_events_url":"https://api.github.com/users/erlik28/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T05:12:09Z","updated_at":"2015-06-12T05:12:09Z","body":"Thanks for the suggestion, that's exactly what I'm doing, but from what I debugged the width property of the IText object is smaller after loading from a json string. It's like it recalculates the width based on a different font. I set the cache property to false on the object but it doesn't seem to help."}}