{"action":"created","issue":{"url":"https://api.github.com/repos/behdad/fonttools/issues/295","labels_url":"https://api.github.com/repos/behdad/fonttools/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/behdad/fonttools/issues/295/comments","events_url":"https://api.github.com/repos/behdad/fonttools/issues/295/events","html_url":"https://github.com/behdad/fonttools/issues/295","id":90265080,"number":295,"title":"[BUG] `ttx -z extfile -o outfile.ttx` writes the `bitmap` folder in the wrong location","user":{"login":"twardoch","id":519108,"avatar_url":"https://avatars.githubusercontent.com/u/519108?v=3","gravatar_id":"","url":"https://api.github.com/users/twardoch","html_url":"https://github.com/twardoch","followers_url":"https://api.github.com/users/twardoch/followers","following_url":"https://api.github.com/users/twardoch/following{/other_user}","gists_url":"https://api.github.com/users/twardoch/gists{/gist_id}","starred_url":"https://api.github.com/users/twardoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twardoch/subscriptions","organizations_url":"https://api.github.com/users/twardoch/orgs","repos_url":"https://api.github.com/users/twardoch/repos","events_url":"https://api.github.com/users/twardoch/events{/privacy}","received_events_url":"https://api.github.com/users/twardoch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-23T02:05:41Z","updated_at":"2015-06-23T10:59:23Z","closed_at":null,"body":"Let's say I do \r\n```\r\nmkdir out\r\nttx -t CBDT -t CBLC -z extfile -o out/myfont.ttx myfont.ttf\r\n```\r\nor\r\n```\r\nmkdir out\r\nttx -t CBDT -t CBLC -z extfile -d out myfont.ttf\r\n```\r\nthen I expect that ttx will create the `bitmap` subfolder in the `out` subfolder, i.e. in the location specified by `-o <outfile>` or `-d <outdir>`. But ttx always creates the `bitmap` subfolder in the current working directory. However, the `out/myfont.ttx` file will make references to `<extfileimagedata value=\"bitmaps/strike0/glyph2784.png\"/>` so it expects the location `out/bitmaps/strike0/glyph2784.png`. \r\n\r\nSo at this point, I have to manually move `bitmap` to `out`, or otherwise, merging won't work. "},"comment":{"url":"https://api.github.com/repos/behdad/fonttools/issues/comments/114444877","html_url":"https://github.com/behdad/fonttools/issues/295#issuecomment-114444877","issue_url":"https://api.github.com/repos/behdad/fonttools/issues/295","id":114444877,"user":{"login":"anthrotype","id":6939968,"avatar_url":"https://avatars.githubusercontent.com/u/6939968?v=3","gravatar_id":"","url":"https://api.github.com/users/anthrotype","html_url":"https://github.com/anthrotype","followers_url":"https://api.github.com/users/anthrotype/followers","following_url":"https://api.github.com/users/anthrotype/following{/other_user}","gists_url":"https://api.github.com/users/anthrotype/gists{/gist_id}","starred_url":"https://api.github.com/users/anthrotype/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthrotype/subscriptions","organizations_url":"https://api.github.com/users/anthrotype/orgs","repos_url":"https://api.github.com/users/anthrotype/repos","events_url":"https://api.github.com/users/anthrotype/events{/privacy}","received_events_url":"https://api.github.com/users/anthrotype/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T10:59:23Z","updated_at":"2015-06-23T10:59:23Z","body":"@twardoch could you try and see if #297 fixes the issue?\r\nthank you."}}