{"action":"created","issue":{"url":"https://api.github.com/repos/fontforge/fontforge/issues/2369","labels_url":"https://api.github.com/repos/fontforge/fontforge/issues/2369/labels{/name}","comments_url":"https://api.github.com/repos/fontforge/fontforge/issues/2369/comments","events_url":"https://api.github.com/repos/fontforge/fontforge/issues/2369/events","html_url":"https://github.com/fontforge/fontforge/issues/2369","id":88309671,"number":2369,"title":"Bad SVG font export","user":{"login":"puzrin","id":319465,"avatar_url":"https://avatars.githubusercontent.com/u/319465?v=3","gravatar_id":"","url":"https://api.github.com/users/puzrin","html_url":"https://github.com/puzrin","followers_url":"https://api.github.com/users/puzrin/followers","following_url":"https://api.github.com/users/puzrin/following{/other_user}","gists_url":"https://api.github.com/users/puzrin/gists{/gist_id}","starred_url":"https://api.github.com/users/puzrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puzrin/subscriptions","organizations_url":"https://api.github.com/users/puzrin/orgs","repos_url":"https://api.github.com/users/puzrin/repos","events_url":"https://api.github.com/users/puzrin/events{/privacy}","received_events_url":"https://api.github.com/users/puzrin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-15T04:16:58Z","updated_at":"2015-06-15T07:46:52Z","closed_at":null,"body":"How to reproduce:\r\n\r\n1. open ttf font from https://github.com/google/material-design-icons/tree/master/iconfont\r\n2. create svg font\r\n3. -> svg font is broken\r\n\r\nProblems:\r\n\r\n1. svg font can't be opened in FontForge (error about bad format)\r\n2. `glyph-name` and `unicode` attrs __swapped__ __AND__ their content __improperly encoded__:\r\n    - `unicode` should be defined like ~ `&#xf000`\r\n    - `glyph-name` (actually ligature) should not encode english letters\r\n\r\nExample from FF (bad output):\r\n```\r\n<glyph glyph-name=\"uniE046\" unicode=\"snoo&#x7a;e\" \r\nd=\"M192 277v43h128v-38l-77 -90h77v-43h-128v39l77 89h-77zM256 85q62 0 105.5 44t43.5 106t-43.5 105.5t-105.5 43.5t-105.5 -43.5t-43.5 -105.5t43.5 -106t105.5 -44zM256 427q80 0 136 -56.5t56 -135.5t-56 -135.5t-136 -56.5t-136 56.5t-56 135.5t56 135.5t136 56.5z\r\nM469 390l-27 -33l-98 83l27 32zM168 440l-98 -82l-27 32l98 82z\" />\r\n```\r\n\r\nPS. Ubuntu 14.04 LTS and latest FontForge from PPA."},"comment":{"url":"https://api.github.com/repos/fontforge/fontforge/issues/comments/111969535","html_url":"https://github.com/fontforge/fontforge/issues/2369#issuecomment-111969535","issue_url":"https://api.github.com/repos/fontforge/fontforge/issues/2369","id":111969535,"user":{"login":"puzrin","id":319465,"avatar_url":"https://avatars.githubusercontent.com/u/319465?v=3","gravatar_id":"","url":"https://api.github.com/users/puzrin","html_url":"https://github.com/puzrin","followers_url":"https://api.github.com/users/puzrin/followers","following_url":"https://api.github.com/users/puzrin/following{/other_user}","gists_url":"https://api.github.com/users/puzrin/gists{/gist_id}","starred_url":"https://api.github.com/users/puzrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puzrin/subscriptions","organizations_url":"https://api.github.com/users/puzrin/orgs","repos_url":"https://api.github.com/users/puzrin/repos","events_url":"https://api.github.com/users/puzrin/events{/privacy}","received_events_url":"https://api.github.com/users/puzrin/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T07:46:52Z","updated_at":"2015-06-15T07:46:52Z","body":"Thechnically, if you really need to save codes & multiple ligatures, `<glyph>` entries should be duplicated (and that works in real life). That's not optimal, but conform spec."}}