{"action":"created","issue":{"url":"https://api.github.com/repos/IDPF/epubcheck/issues/586","repository_url":"https://api.github.com/repos/IDPF/epubcheck","labels_url":"https://api.github.com/repos/IDPF/epubcheck/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/IDPF/epubcheck/issues/586/comments","events_url":"https://api.github.com/repos/IDPF/epubcheck/issues/586/events","html_url":"https://github.com/IDPF/epubcheck/issues/586","id":105588233,"number":586,"title":"Improve checking of font types and fallbacks in CSS","user":{"login":"tofi86","id":365118,"avatar_url":"https://avatars.githubusercontent.com/u/365118?v=3","gravatar_id":"","url":"https://api.github.com/users/tofi86","html_url":"https://github.com/tofi86","followers_url":"https://api.github.com/users/tofi86/followers","following_url":"https://api.github.com/users/tofi86/following{/other_user}","gists_url":"https://api.github.com/users/tofi86/gists{/gist_id}","starred_url":"https://api.github.com/users/tofi86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tofi86/subscriptions","organizations_url":"https://api.github.com/users/tofi86/orgs","repos_url":"https://api.github.com/users/tofi86/repos","events_url":"https://api.github.com/users/tofi86/events{/privacy}","received_events_url":"https://api.github.com/users/tofi86/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"rdeltour","id":520889,"avatar_url":"https://avatars.githubusercontent.com/u/520889?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeltour","html_url":"https://github.com/rdeltour","followers_url":"https://api.github.com/users/rdeltour/followers","following_url":"https://api.github.com/users/rdeltour/following{/other_user}","gists_url":"https://api.github.com/users/rdeltour/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeltour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeltour/subscriptions","organizations_url":"https://api.github.com/users/rdeltour/orgs","repos_url":"https://api.github.com/users/rdeltour/repos","events_url":"https://api.github.com/users/rdeltour/events{/privacy}","received_events_url":"https://api.github.com/users/rdeltour/received_events","type":"User","site_admin":false},"assignees":[{"login":"rdeltour","id":520889,"avatar_url":"https://avatars.githubusercontent.com/u/520889?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeltour","html_url":"https://github.com/rdeltour","followers_url":"https://api.github.com/users/rdeltour/followers","following_url":"https://api.github.com/users/rdeltour/following{/other_user}","gists_url":"https://api.github.com/users/rdeltour/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeltour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeltour/subscriptions","organizations_url":"https://api.github.com/users/rdeltour/orgs","repos_url":"https://api.github.com/users/rdeltour/repos","events_url":"https://api.github.com/users/rdeltour/events{/privacy}","received_events_url":"https://api.github.com/users/rdeltour/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/IDPF/epubcheck/milestones/4","html_url":"https://github.com/IDPF/epubcheck/milestones/4.0.1","labels_url":"https://api.github.com/repos/IDPF/epubcheck/milestones/4/labels","id":1329844,"number":4,"title":"4.0.1","description":"Bug fix release.","creator":{"login":"rdeltour","id":520889,"avatar_url":"https://avatars.githubusercontent.com/u/520889?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeltour","html_url":"https://github.com/rdeltour","followers_url":"https://api.github.com/users/rdeltour/followers","following_url":"https://api.github.com/users/rdeltour/following{/other_user}","gists_url":"https://api.github.com/users/rdeltour/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeltour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeltour/subscriptions","organizations_url":"https://api.github.com/users/rdeltour/orgs","repos_url":"https://api.github.com/users/rdeltour/repos","events_url":"https://api.github.com/users/rdeltour/events{/privacy}","received_events_url":"https://api.github.com/users/rdeltour/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":41,"state":"closed","created_at":"2015-09-29T20:07:53Z","updated_at":"2015-11-02T14:07:58Z","due_on":"2015-10-08T22:00:00Z","closed_at":"2015-11-02T14:07:58Z"},"comments":3,"created_at":"2015-09-09T12:42:27Z","updated_at":"2016-10-12T17:55:24Z","closed_at":"2015-10-21T11:49:24Z","body":"## OpenType fonts with TrueType outlines (*.ttf) shouldn't generate a WARNING\r\n\r\n```\r\nWARNING (CSS-007) at \"Dummy_EPUB3.epub/OEBPS/stylesheet.css\" (line 18, col 71):\r\n   Font-face reference OEBPS/fonts/PT-Sans-Italic.ttf refers to non-standard font type application/x-font-ttf.\r\n```\r\n\r\nThis WARNING is not true.\r\nThe `PT-Sans-Italic.ttf` is an OpenType font with TrueType outlines which should be perfectly valid.\r\nHowever, it's declared as `application/x-font-ttf` in the `content.opf` file which may seem wrong, but it's still the correct mime-type for OpenType with TrueType outlines.\r\n\r\nAlso, epubcheck seems to ignore the `format()` property of the `@font-face` declaration:\r\n```css\r\n@font-face{\r\n    font-family: 'PT-Sans';\r\n    font-style: italic;\r\n    font-weight: normal;\r\n    src: url(\"fonts/PT-Sans-Italic.ttf\") format('opentype');\r\n}\r\n```\r\nSeems as epubcheck only checks the file extension and throws a warning for `*.ttf` in general instead of checking the `format()` property and then examining the font file itself."},"comment":{"url":"https://api.github.com/repos/IDPF/epubcheck/issues/comments/253288152","html_url":"https://github.com/IDPF/epubcheck/issues/586#issuecomment-253288152","issue_url":"https://api.github.com/repos/IDPF/epubcheck/issues/586","id":253288152,"user":{"login":"mhenes","id":9383071,"avatar_url":"https://avatars.githubusercontent.com/u/9383071?v=3","gravatar_id":"","url":"https://api.github.com/users/mhenes","html_url":"https://github.com/mhenes","followers_url":"https://api.github.com/users/mhenes/followers","following_url":"https://api.github.com/users/mhenes/following{/other_user}","gists_url":"https://api.github.com/users/mhenes/gists{/gist_id}","starred_url":"https://api.github.com/users/mhenes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhenes/subscriptions","organizations_url":"https://api.github.com/users/mhenes/orgs","repos_url":"https://api.github.com/users/mhenes/repos","events_url":"https://api.github.com/users/mhenes/events{/privacy}","received_events_url":"https://api.github.com/users/mhenes/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T17:55:24Z","updated_at":"2016-10-12T17:55:24Z","body":"Any update ^^^ thanks."}}
{"actor":{"display_login":"mhenes"}}