{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/5756","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5756/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5756/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5756/events","html_url":"https://github.com/mozilla/pdf.js/pull/5756","id":58601799,"number":5756,"title":"Guess CIDFontType0 subtype based on font file contents (issue 5751)","user":{"login":"Snuffleupagus","id":2692120,"avatar_url":"https://avatars.githubusercontent.com/u/2692120?v=3","gravatar_id":"","url":"https://api.github.com/users/Snuffleupagus","html_url":"https://github.com/Snuffleupagus","followers_url":"https://api.github.com/users/Snuffleupagus/followers","following_url":"https://api.github.com/users/Snuffleupagus/following{/other_user}","gists_url":"https://api.github.com/users/Snuffleupagus/gists{/gist_id}","starred_url":"https://api.github.com/users/Snuffleupagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Snuffleupagus/subscriptions","organizations_url":"https://api.github.com/users/Snuffleupagus/orgs","repos_url":"https://api.github.com/users/Snuffleupagus/repos","events_url":"https://api.github.com/users/Snuffleupagus/events{/privacy}","received_events_url":"https://api.github.com/users/Snuffleupagus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-font-conversion","name":"4-font-conversion","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"brendandahl","id":942640,"avatar_url":"https://avatars.githubusercontent.com/u/942640?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandahl","html_url":"https://github.com/brendandahl","followers_url":"https://api.github.com/users/brendandahl/followers","following_url":"https://api.github.com/users/brendandahl/following{/other_user}","gists_url":"https://api.github.com/users/brendandahl/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandahl/subscriptions","organizations_url":"https://api.github.com/users/brendandahl/orgs","repos_url":"https://api.github.com/users/brendandahl/repos","events_url":"https://api.github.com/users/brendandahl/events{/privacy}","received_events_url":"https://api.github.com/users/brendandahl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mozilla/pdf.js/milestones/16","html_url":"https://github.com/mozilla/pdf.js/milestones/2015%20Q1","labels_url":"https://api.github.com/repos/mozilla/pdf.js/milestones/16/labels","id":924055,"number":16,"title":"2015 Q1","description":"- B2G Viewer refactoring\r\n- Regressions","creator":{"login":"yurydelendik","id":1523410,"avatar_url":"https://avatars.githubusercontent.com/u/1523410?v=3","gravatar_id":"","url":"https://api.github.com/users/yurydelendik","html_url":"https://github.com/yurydelendik","followers_url":"https://api.github.com/users/yurydelendik/followers","following_url":"https://api.github.com/users/yurydelendik/following{/other_user}","gists_url":"https://api.github.com/users/yurydelendik/gists{/gist_id}","starred_url":"https://api.github.com/users/yurydelendik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurydelendik/subscriptions","organizations_url":"https://api.github.com/users/yurydelendik/orgs","repos_url":"https://api.github.com/users/yurydelendik/repos","events_url":"https://api.github.com/users/yurydelendik/events{/privacy}","received_events_url":"https://api.github.com/users/yurydelendik/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":22,"state":"closed","created_at":"2015-01-06T16:46:42Z","updated_at":"2015-04-20T18:46:27Z","due_on":"2015-03-30T22:00:00Z","closed_at":"2015-04-09T21:38:37Z"},"comments":7,"created_at":"2015-02-23T15:32:42Z","updated_at":"2015-04-24T21:19:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/pdf.js/pulls/5756","html_url":"https://github.com/mozilla/pdf.js/pull/5756","diff_url":"https://github.com/mozilla/pdf.js/pull/5756.diff","patch_url":"https://github.com/mozilla/pdf.js/pull/5756.patch"},"body":"*This patch is inspired by PR #4671.*\r\n\r\nFixes #5751.\r\nFixes #4293.\r\n\r\nThe problem with the PDF file in the issue, is that it claims the font is `CIDFontType0` instead of the correct `CIDFontType0C`.\r\nThe most logical solution would be to check if the font has a `CFF` file, but since the header of those begins with a version number, that seemed complicated in general.\r\nIn contrast `Type1` fonts have a much simpler structure, see http://partners.adobe.com/public/developer/en/font/T1_SPEC.PDF#page=18, hence adding a `isType1file` function seemed easiest."},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/96068064","html_url":"https://github.com/mozilla/pdf.js/pull/5756#issuecomment-96068064","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/5756","id":96068064,"user":{"login":"pdfjsbot","id":1036361,"avatar_url":"https://avatars.githubusercontent.com/u/1036361?v=3","gravatar_id":"","url":"https://api.github.com/users/pdfjsbot","html_url":"https://github.com/pdfjsbot","followers_url":"https://api.github.com/users/pdfjsbot/followers","following_url":"https://api.github.com/users/pdfjsbot/following{/other_user}","gists_url":"https://api.github.com/users/pdfjsbot/gists{/gist_id}","starred_url":"https://api.github.com/users/pdfjsbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdfjsbot/subscriptions","organizations_url":"https://api.github.com/users/pdfjsbot/orgs","repos_url":"https://api.github.com/users/pdfjsbot/repos","events_url":"https://api.github.com/users/pdfjsbot/events{/privacy}","received_events_url":"https://api.github.com/users/pdfjsbot/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T21:19:00Z","updated_at":"2015-04-24T21:19:00Z","body":"#### From: Bot.io (Windows)\n\n----\n\n# Received\n\nCommand **cmd_makeref** from @brendandahl received. Current queue size: 0\n\nLive output at: http://107.22.172.223:8877/e1e6cda0e8f0894/output.txt"}}