{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/4739","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/4739/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/4739/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/4739/events","html_url":"https://github.com/kangax/fabric.js/issues/4739","id":298101772,"number":4739,"title":"Text cursor position is incorrect after changing fonts (using font face observer)","user":{"login":"blobinabottle","id":8090162,"avatar_url":"https://avatars0.githubusercontent.com/u/8090162?v=4","gravatar_id":"","url":"https://api.github.com/users/blobinabottle","html_url":"https://github.com/blobinabottle","followers_url":"https://api.github.com/users/blobinabottle/followers","following_url":"https://api.github.com/users/blobinabottle/following{/other_user}","gists_url":"https://api.github.com/users/blobinabottle/gists{/gist_id}","starred_url":"https://api.github.com/users/blobinabottle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blobinabottle/subscriptions","organizations_url":"https://api.github.com/users/blobinabottle/orgs","repos_url":"https://api.github.com/users/blobinabottle/repos","events_url":"https://api.github.com/users/blobinabottle/events{/privacy}","received_events_url":"https://api.github.com/users/blobinabottle/received_events","type":"User","site_admin":false},"labels":[{"id":139904891,"url":"https://api.github.com/repos/kangax/fabric.js/labels/itext","name":"itext","color":"bfe5bf","default":false},{"id":51703429,"url":"https://api.github.com/repos/kangax/fabric.js/labels/needs_confirmation","name":"needs_confirmation","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-18T17:27:42Z","updated_at":"2018-02-21T14:05:56Z","closed_at":null,"author_association":"NONE","body":"## Version\r\n2.0.1\r\n\r\n## Test Case\r\nhttp://jsfiddle.net/blobinabottle/xsLgppan/16/\r\n\r\n## Steps to reproduce\r\nChange the text to Roboto and check last words of the fist line, the text cursor got an incorrect position. \r\n<img width=\"157\" alt=\"screen shot 2018-02-18 at 18 22 37\" src=\"https://user-images.githubusercontent.com/8090162/36354724-fa817f00-14d8-11e8-817a-92dea8f22820.png\">\r\n\r\nIt's worst if you select pacifico (I'm selecting SIT :-)). \r\n![image](https://user-images.githubusercontent.com/8090162/36354731-060660f2-14d9-11e8-9a68-ce6bc795dbce.png)\r\n\r\n\r\n## Expected Behavior\r\nCursor should be a the right position.\r\n\r\nIs there anything to do to avoid this situation? I tried clearFabricFontCache but not sure I've done it right.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/367336285","html_url":"https://github.com/kangax/fabric.js/issues/4739#issuecomment-367336285","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/4739","id":367336285,"user":{"login":"blobinabottle","id":8090162,"avatar_url":"https://avatars0.githubusercontent.com/u/8090162?v=4","gravatar_id":"","url":"https://api.github.com/users/blobinabottle","html_url":"https://github.com/blobinabottle","followers_url":"https://api.github.com/users/blobinabottle/followers","following_url":"https://api.github.com/users/blobinabottle/following{/other_user}","gists_url":"https://api.github.com/users/blobinabottle/gists{/gist_id}","starred_url":"https://api.github.com/users/blobinabottle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blobinabottle/subscriptions","organizations_url":"https://api.github.com/users/blobinabottle/orgs","repos_url":"https://api.github.com/users/blobinabottle/repos","events_url":"https://api.github.com/users/blobinabottle/events{/privacy}","received_events_url":"https://api.github.com/users/blobinabottle/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T14:05:56Z","updated_at":"2018-02-21T14:05:56Z","author_association":"NONE","body":"Okay I understand now. So a little difference accumulates on long lines even with simple font like Roboto. And I see some discussion about it already happened long time ago :D https://github.com/Automattic/node-canvas/issues/331"}}
{"actor":{"display_login":"blobinabottle"}}