{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/28379","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/28379/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/28379/comments","events_url":"https://api.github.com/repos/golang/go/issues/28379/events","html_url":"https://github.com/golang/go/issues/28379","id":373723976,"node_id":"MDU6SXNzdWUzNzM3MjM5NzY=","number":28379,"title":"x/image/font/sfnt: horizontal metrics table (hmtx) validation is incorrect","user":{"login":"dennwc","id":676724,"node_id":"MDQ6VXNlcjY3NjcyNA==","avatar_url":"https://avatars3.githubusercontent.com/u/676724?v=4","gravatar_id":"","url":"https://api.github.com/users/dennwc","html_url":"https://github.com/dennwc","followers_url":"https://api.github.com/users/dennwc/followers","following_url":"https://api.github.com/users/dennwc/following{/other_user}","gists_url":"https://api.github.com/users/dennwc/gists{/gist_id}","starred_url":"https://api.github.com/users/dennwc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennwc/subscriptions","organizations_url":"https://api.github.com/users/dennwc/orgs","repos_url":"https://api.github.com/users/dennwc/repos","events_url":"https://api.github.com/users/dennwc/events{/privacy}","received_events_url":"https://api.github.com/users/dennwc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/22","html_url":"https://github.com/golang/go/milestone/22","labels_url":"https://api.github.com/repos/golang/go/milestones/22/labels","id":1067491,"node_id":"MDk6TWlsZXN0b25lMTA2NzQ5MQ==","number":22,"title":"Unreleased","description":"Issues that do not affect released Go code and binaries.\r\n","creator":{"login":"rsc","id":104030,"node_id":"MDQ6VXNlcjEwNDAzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/104030?v=4","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":1000,"closed_issues":1699,"state":"open","created_at":"2015-04-14T18:48:22Z","updated_at":"2018-10-30T21:26:54Z","due_on":"2099-12-31T08:00:00Z","closed_at":null},"comments":2,"created_at":"2018-10-25T00:10:35Z","updated_at":"2018-10-30T22:24:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### What did you do?\r\n\r\nParse an embedded TTF font from [PDF object](https://github.com/unidoc/unidoc/blob/v3/pdf/model/testdata/font/townes.txt).\r\n\r\n### What did you expect to see?\r\n\r\nno error\r\n\r\n### What did you see instead?\r\n\r\n```\r\nsfnt: invalid hmtx table\r\n```\r\n\r\n### Details\r\n\r\nIt seems that the validation code for `hmtx` table is incorrect. The library assumes `2*numGlyphs + 2*numHMetrics`, while the [spec](https://www.microsoft.com/typography/OTSPEC/hmtx.htm) describes it as `4*numHMetrics [+ 2*(numGlyphs-numHMetrics)]`."},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/434492275","html_url":"https://github.com/golang/go/issues/28379#issuecomment-434492275","issue_url":"https://api.github.com/repos/golang/go/issues/28379","id":434492275,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDQ5MjI3NQ==","user":{"login":"gopherbot","id":8566911,"node_id":"MDQ6VXNlcjg1NjY5MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/8566911?v=4","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T22:24:58Z","updated_at":"2018-10-30T22:24:58Z","author_association":"NONE","body":"Change https://golang.org/cl/146081 mentions this issue: `font/sfnt: add parsing tests`"}}
{"actor":{"display_login":"gopherbot"}}