{"action":"closed","issue":{"url":"https://api.github.com/repos/fontforge/fontforge/issues/2194","labels_url":"https://api.github.com/repos/fontforge/fontforge/issues/2194/labels{/name}","comments_url":"https://api.github.com/repos/fontforge/fontforge/issues/2194/comments","events_url":"https://api.github.com/repos/fontforge/fontforge/issues/2194/events","html_url":"https://github.com/fontforge/fontforge/issues/2194","id":67390780,"number":2194,"title":"Can't export .dfont fonts to .ttf","user":{"login":"raphaelyancey","id":5130438,"avatar_url":"https://avatars.githubusercontent.com/u/5130438?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelyancey","html_url":"https://github.com/raphaelyancey","followers_url":"https://api.github.com/users/raphaelyancey/followers","following_url":"https://api.github.com/users/raphaelyancey/following{/other_user}","gists_url":"https://api.github.com/users/raphaelyancey/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelyancey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelyancey/subscriptions","organizations_url":"https://api.github.com/users/raphaelyancey/orgs","repos_url":"https://api.github.com/users/raphaelyancey/repos","events_url":"https://api.github.com/users/raphaelyancey/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelyancey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fontforge/fontforge/labels/I-bug","name":"I-bug","color":"fc2929"},{"url":"https://api.github.com/repos/fontforge/fontforge/labels/I-crash","name":"I-crash","color":"e10c02"},{"url":"https://api.github.com/repos/fontforge/fontforge/labels/scripting","name":"scripting","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T15:48:49Z","updated_at":"2015-06-02T09:20:26Z","closed_at":"2015-06-02T09:20:26Z","body":"Hi!\r\n\r\nThis is not really an issue, but I couldn't find an answer in the scripting guides, I hope you'll be able to help me.\r\n\r\nI'm trying to extract fonts from a `.dfont` file and export each of the font variants to a separate `.ttf` file, from the command line.\r\n\r\nFirst, I tried to get the fonts names inside the `.dfont` by using `FontsInFile(\"MyFont.dfont\")` but it returns an empty array, whereas the GUI application asks me to select a font when I open the same `.dfont`.\r\n\r\n```\r\n#!/usr/local/bin/fontforge\r\nfonts = FontsInFile(\"Kigali.dfont\")\r\nPrint(\"Fonts: \")\r\nPrint(fonts)\r\n```\r\n\r\nThen, I tried to directly open a sub-font with `Open(\"MyFont.dfont(0)\")` and to export it with `Generate(\"MySubFont.ttf\")`, but it ends up with a `Segmentation fault`.\r\n\r\n```\r\n#!/usr/local/bin/fontforge\r\nOpen(\"Kigali.dfont(0)\")\r\nGenerate(\"Kigali_Sub.ttf\")\r\nPrint(\"Done.\")\r\n```\r\n\r\nCould you light my path? Thank you in advance, and thank you for providing this wonderful tool.\r\n\r\n(`$ fontforge -version` outputs `[...] libfontforge 20150403`, on OSX 10.6.8 — the font I'm trying to convert is [Kigali](http://www.mediafire.com/download/311uf2es7mhnu5o/Kigali.dfont))"}}