{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/7411","repository_url":"https://api.github.com/repos/mozilla/pdf.js","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7411/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7411/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7411/events","html_url":"https://github.com/mozilla/pdf.js/issues/7411","id":160284807,"number":7411,"title":"TextItem width way off","user":{"login":"richkniles","id":1834068,"avatar_url":"https://avatars.githubusercontent.com/u/1834068?v=3","gravatar_id":"","url":"https://api.github.com/users/richkniles","html_url":"https://github.com/richkniles","followers_url":"https://api.github.com/users/richkniles/followers","following_url":"https://api.github.com/users/richkniles/following{/other_user}","gists_url":"https://api.github.com/users/richkniles/gists{/gist_id}","starred_url":"https://api.github.com/users/richkniles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richkniles/subscriptions","organizations_url":"https://api.github.com/users/richkniles/orgs","repos_url":"https://api.github.com/users/richkniles/repos","events_url":"https://api.github.com/users/richkniles/events{/privacy}","received_events_url":"https://api.github.com/users/richkniles/received_events","type":"User","site_admin":false},"labels":[{"id":211681,"url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-text-selection","name":"4-text-selection","color":"DDDDDD","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-14T21:10:41Z","updated_at":"2016-12-19T21:16:40Z","closed_at":"2016-12-19T21:16:40Z","body":"Link to PDF file (or attach file here):\n[text_item_widths_off.pdf](https://github.com/mozilla/pdf.js/files/314774/text_item_widths_off.pdf)\n\nView this file in the viewer.  Search for the word 'designated'.  The highlighting of the search hit on line 5 is way off to the right of where the word is rendered on the canvas.  This is caused by the width of TextItem[10](Returned in the promise from getTextContent%28%29) having a width that is about 50% too high.\n\nThis pdf file was generated by MS Word, from a document using New Times Roman font. The issue is corrected if I use MS Word's default 'Calibri' font.\n\nI've created my own viewer with a search function, and I'd like the search hits to match more closely to the rendered text on the canvas.  I've looked at quite a few pdfs in my viewer, and most of them have fairly close matching between search highlighting and the rendered text.  But documents created in word with most fonts other than the default \"Calibri\" seem to have similar problems.\n\nAny advise?\n"},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/268080827","html_url":"https://github.com/mozilla/pdf.js/issues/7411#issuecomment-268080827","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7411","id":268080827,"user":{"login":"timvandermeij","id":1993262,"avatar_url":"https://avatars.githubusercontent.com/u/1993262?v=3","gravatar_id":"","url":"https://api.github.com/users/timvandermeij","html_url":"https://github.com/timvandermeij","followers_url":"https://api.github.com/users/timvandermeij/followers","following_url":"https://api.github.com/users/timvandermeij/following{/other_user}","gists_url":"https://api.github.com/users/timvandermeij/gists{/gist_id}","starred_url":"https://api.github.com/users/timvandermeij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvandermeij/subscriptions","organizations_url":"https://api.github.com/users/timvandermeij/orgs","repos_url":"https://api.github.com/users/timvandermeij/repos","events_url":"https://api.github.com/users/timvandermeij/events{/privacy}","received_events_url":"https://api.github.com/users/timvandermeij/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T21:16:39Z","updated_at":"2016-12-19T21:16:39Z","body":"Closing as fixed, most likely by #7879. This now aligns perfectly."}}
{"actor":{"display_login":"timvandermeij"}}