{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/801","repository_url":"https://api.github.com/repos/Automattic/node-canvas","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/801/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/801/events","html_url":"https://github.com/Automattic/node-canvas/issues/801","id":172089142,"number":801,"title":"measureText is different between browser and node","user":{"login":"minzojian","id":361781,"avatar_url":"https://avatars.githubusercontent.com/u/361781?v=3","gravatar_id":"","url":"https://api.github.com/users/minzojian","html_url":"https://github.com/minzojian","followers_url":"https://api.github.com/users/minzojian/followers","following_url":"https://api.github.com/users/minzojian/following{/other_user}","gists_url":"https://api.github.com/users/minzojian/gists{/gist_id}","starred_url":"https://api.github.com/users/minzojian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minzojian/subscriptions","organizations_url":"https://api.github.com/users/minzojian/orgs","repos_url":"https://api.github.com/users/minzojian/repos","events_url":"https://api.github.com/users/minzojian/events{/privacy}","received_events_url":"https://api.github.com/users/minzojian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-19T09:19:42Z","updated_at":"2016-08-19T09:21:57Z","closed_at":null,"body":"![image](https://cloud.githubusercontent.com/assets/361781/17805013/ffd43780-662f-11e6-9190-abf3af5ff3e3.png)\r\ni render a simple text in fabric.js(which use node-canvas to render objects in node side)\r\nsame font,same texts,but the measureText(\"i\").width is different\r\nthe left side is run in chrome,and the width is (just as we can see) 32px, \r\nright side is render in node-canvas,and the character width become 60,so that make a text wrap.cause my textbox width is limited.\r\nis any clue to make node-canvas get a right character width?"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/240970530","html_url":"https://github.com/Automattic/node-canvas/issues/801#issuecomment-240970530","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/801","id":240970530,"user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars.githubusercontent.com/u/189580?v=3","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T09:21:57Z","updated_at":"2016-08-19T09:21:57Z","body":"Duplicate of #782 I think\r\n\r\nBasically there is no way to fix this, since different browsers and OSes can use different text rendering, and `measureText` must reflect what will actually be drawn..."}}
{"actor":{"display_login":"LinusU"}}