{"action":"created","comment":{"url":"https://api.github.com/repos/metapolator/metapolator/pulls/comments/32220790","id":32220790,"diff_hunk":"@@ -635,6 +640,17 @@ define([\n         return zipUtil.encode(false, mem_io, targetDirName, dataType);\n     };\n \n+    _p.getOTFInstance = function(masterName, project) {\n+        var model = project.open(masterName)\n+          , master = model.query('master#' + masterName)\n+          , font\n+          , exportController\n+          ;\n+        exportController = new OTFExportController(master, model, masterName);\n+        font = exportController.do_export();\n+        return new Buffer(Int8Array(font.toBuffer()));","path":"app/lib/project/MetapolatorProject.js","position":40,"original_position":40,"commit_id":"b42aebe2ae68caf70257197d4c5c269fa5ec5acb","original_commit_id":"b42aebe2ae68caf70257197d4c5c269fa5ec5acb","user":{"login":"graphicore","id":393132,"avatar_url":"https://avatars.githubusercontent.com/u/393132?v=3","gravatar_id":"","url":"https://api.github.com/users/graphicore","html_url":"https://github.com/graphicore","followers_url":"https://api.github.com/users/graphicore/followers","following_url":"https://api.github.com/users/graphicore/following{/other_user}","gists_url":"https://api.github.com/users/graphicore/gists{/gist_id}","starred_url":"https://api.github.com/users/graphicore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphicore/subscriptions","organizations_url":"https://api.github.com/users/graphicore/orgs","repos_url":"https://api.github.com/users/graphicore/repos","events_url":"https://api.github.com/users/graphicore/events{/privacy}","received_events_url":"https://api.github.com/users/graphicore/received_events","type":"User","site_admin":false},"body":"Is this working in NodeJS? All these binary containers are horrible for interoperability.\r\n\r\nOK, it seems like opentype.js is not up to the task ... https://github.com/nodebox/opentype.js/blob/b5d04ae68d9c2aba92cc18c5cd93bf677bc43694/dist/opentype.js#L508","created_at":"2015-06-11T13:40:29Z","updated_at":"2015-06-11T13:40:29Z","html_url":"https://github.com/metapolator/metapolator/pull/603#discussion_r32220790","pull_request_url":"https://api.github.com/repos/metapolator/metapolator/pulls/603","_links":{"self":{"href":"https://api.github.com/repos/metapolator/metapolator/pulls/comments/32220790"},"html":{"href":"https://github.com/metapolator/metapolator/pull/603#discussion_r32220790"},"pull_request":{"href":"https://api.github.com/repos/metapolator/metapolator/pulls/603"}}},"pull_request":{"url":"https://api.github.com/repos/metapolator/metapolator/pulls/603","id":36161686,"html_url":"https://github.com/metapolator/metapolator/pull/603","diff_url":"https://github.com/metapolator/metapolator/pull/603.diff","patch_url":"https://github.com/metapolator/metapolator/pull/603.patch","issue_url":"https://api.github.com/repos/metapolator/metapolator/issues/603","number":603,"state":"open","locked":false,"title":"[Master] Export OTF","user":{"login":"felipesanches","id":213676,"avatar_url":"https://avatars.githubusercontent.com/u/213676?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesanches","html_url":"https://github.com/felipesanches","followers_url":"https://api.github.com/users/felipesanches/followers","following_url":"https://api.github.com/users/felipesanches/following{/other_user}","gists_url":"https://api.github.com/users/felipesanches/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesanches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesanches/subscriptions","organizations_url":"https://api.github.com/users/felipesanches/orgs","repos_url":"https://api.github.com/users/felipesanches/repos","events_url":"https://api.github.com/users/felipesanches/events{/privacy}","received_events_url":"https://api.github.com/users/felipesanches/received_events","type":"User","site_admin":false},"body":"This pull request is meant to serve as a conversation area for us to discuss the ongoing effort to export in OTF file format.","created_at":"2015-05-25T23:41:58Z","updated_at":"2015-06-11T13:40:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6290e51da8d2a65b570ae2bcc539670e69d4212","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/metapolator/metapolator/pulls/603/commits","review_comments_url":"https://api.github.com/repos/metapolator/metapolator/pulls/603/comments","review_comment_url":"https://api.github.com/repos/metapolator/metapolator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metapolator/metapolator/issues/603/comments","statuses_url":"https://api.github.com/repos/metapolator/metapolator/statuses/b42aebe2ae68caf70257197d4c5c269fa5ec5acb","head":{"label":"felipesanches:master_export_otf","ref":"master_export_otf","sha":"b42aebe2ae68caf70257197d4c5c269fa5ec5acb","user":{"login":"felipesanches","id":213676,"avatar_url":"https://avatars.githubusercontent.com/u/213676?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesanches","html_url":"https://github.com/felipesanches","followers_url":"https://api.github.com/users/felipesanches/followers","following_url":"https://api.github.com/users/felipesanches/following{/other_user}","gists_url":"https://api.github.com/users/felipesanches/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesanches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesanches/subscriptions","organizations_url":"https://api.github.com/users/felipesanches/orgs","repos_url":"https://api.github.com/users/felipesanches/repos","events_url":"https://api.github.com/users/felipesanches/events{/privacy}","received_events_url":"https://api.github.com/users/felipesanches/received_events","type":"User","site_admin":false},"repo":{"id":33308614,"name":"metapolator","full_name":"felipesanches/metapolator","owner":{"login":"felipesanches","id":213676,"avatar_url":"https://avatars.githubusercontent.com/u/213676?v=3","gravatar_id":"","url":"https://api.github.com/users/felipesanches","html_url":"https://github.com/felipesanches","followers_url":"https://api.github.com/users/felipesanches/followers","following_url":"https://api.github.com/users/felipesanches/following{/other_user}","gists_url":"https://api.github.com/users/felipesanches/gists{/gist_id}","starred_url":"https://api.github.com/users/felipesanches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipesanches/subscriptions","organizations_url":"https://api.github.com/users/felipesanches/orgs","repos_url":"https://api.github.com/users/felipesanches/repos","events_url":"https://api.github.com/users/felipesanches/events{/privacy}","received_events_url":"https://api.github.com/users/felipesanches/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/felipesanches/metapolator","description":"Design typeface families","fork":true,"url":"https://api.github.com/repos/felipesanches/metapolator","forks_url":"https://api.github.com/repos/felipesanches/metapolator/forks","keys_url":"https://api.github.com/repos/felipesanches/metapolator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/felipesanches/metapolator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/felipesanches/metapolator/teams","hooks_url":"https://api.github.com/repos/felipesanches/metapolator/hooks","issue_events_url":"https://api.github.com/repos/felipesanches/metapolator/issues/events{/number}","events_url":"https://api.github.com/repos/felipesanches/metapolator/events","assignees_url":"https://api.github.com/repos/felipesanches/metapolator/assignees{/user}","branches_url":"https://api.github.com/repos/felipesanches/metapolator/branches{/branch}","tags_url":"https://api.github.com/repos/felipesanches/metapolator/tags","blobs_url":"https://api.github.com/repos/felipesanches/metapolator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/felipesanches/metapolator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/felipesanches/metapolator/git/refs{/sha}","trees_url":"https://api.github.com/repos/felipesanches/metapolator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/felipesanches/metapolator/statuses/{sha}","languages_url":"https://api.github.com/repos/felipesanches/metapolator/languages","stargazers_url":"https://api.github.com/repos/felipesanches/metapolator/stargazers","contributors_url":"https://api.github.com/repos/felipesanches/metapolator/contributors","subscribers_url":"https://api.github.com/repos/felipesanches/metapolator/subscribers","subscription_url":"https://api.github.com/repos/felipesanches/metapolator/subscription","commits_url":"https://api.github.com/repos/felipesanches/metapolator/commits{/sha}","git_commits_url":"https://api.github.com/repos/felipesanches/metapolator/git/commits{/sha}","comments_url":"https://api.github.com/repos/felipesanches/metapolator/comments{/number}","issue_comment_url":"https://api.github.com/repos/felipesanches/metapolator/issues/comments{/number}","contents_url":"https://api.github.com/repos/felipesanches/metapolator/contents/{+path}","compare_url":"https://api.github.com/repos/felipesanches/metapolator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/felipesanches/metapolator/merges","archive_url":"https://api.github.com/repos/felipesanches/metapolator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/felipesanches/metapolator/downloads","issues_url":"https://api.github.com/repos/felipesanches/metapolator/issues{/number}","pulls_url":"https://api.github.com/repos/felipesanches/metapolator/pulls{/number}","milestones_url":"https://api.github.com/repos/felipesanches/metapolator/milestones{/number}","notifications_url":"https://api.github.com/repos/felipesanches/metapolator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/felipesanches/metapolator/labels{/name}","releases_url":"https://api.github.com/repos/felipesanches/metapolator/releases{/id}","created_at":"2015-04-02T12:52:37Z","updated_at":"2015-04-30T20:11:42Z","pushed_at":"2015-06-11T03:56:07Z","git_url":"git://github.com/felipesanches/metapolator.git","ssh_url":"git@github.com:felipesanches/metapolator.git","clone_url":"https://github.com/felipesanches/metapolator.git","svn_url":"https://github.com/felipesanches/metapolator","homepage":"metapolator.com","size":159743,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"metapolator:master","ref":"master","sha":"aee99ecc3384d9d05c08ca36aafe3f283bc9c889","user":{"login":"metapolator","id":4283442,"avatar_url":"https://avatars.githubusercontent.com/u/4283442?v=3","gravatar_id":"","url":"https://api.github.com/users/metapolator","html_url":"https://github.com/metapolator","followers_url":"https://api.github.com/users/metapolator/followers","following_url":"https://api.github.com/users/metapolator/following{/other_user}","gists_url":"https://api.github.com/users/metapolator/gists{/gist_id}","starred_url":"https://api.github.com/users/metapolator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metapolator/subscriptions","organizations_url":"https://api.github.com/users/metapolator/orgs","repos_url":"https://api.github.com/users/metapolator/repos","events_url":"https://api.github.com/users/metapolator/events{/privacy}","received_events_url":"https://api.github.com/users/metapolator/received_events","type":"Organization","site_admin":false},"repo":{"id":9852744,"name":"metapolator","full_name":"metapolator/metapolator","owner":{"login":"metapolator","id":4283442,"avatar_url":"https://avatars.githubusercontent.com/u/4283442?v=3","gravatar_id":"","url":"https://api.github.com/users/metapolator","html_url":"https://github.com/metapolator","followers_url":"https://api.github.com/users/metapolator/followers","following_url":"https://api.github.com/users/metapolator/following{/other_user}","gists_url":"https://api.github.com/users/metapolator/gists{/gist_id}","starred_url":"https://api.github.com/users/metapolator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metapolator/subscriptions","organizations_url":"https://api.github.com/users/metapolator/orgs","repos_url":"https://api.github.com/users/metapolator/repos","events_url":"https://api.github.com/users/metapolator/events{/privacy}","received_events_url":"https://api.github.com/users/metapolator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metapolator/metapolator","description":"Design fonts and font families faster","fork":false,"url":"https://api.github.com/repos/metapolator/metapolator","forks_url":"https://api.github.com/repos/metapolator/metapolator/forks","keys_url":"https://api.github.com/repos/metapolator/metapolator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metapolator/metapolator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metapolator/metapolator/teams","hooks_url":"https://api.github.com/repos/metapolator/metapolator/hooks","issue_events_url":"https://api.github.com/repos/metapolator/metapolator/issues/events{/number}","events_url":"https://api.github.com/repos/metapolator/metapolator/events","assignees_url":"https://api.github.com/repos/metapolator/metapolator/assignees{/user}","branches_url":"https://api.github.com/repos/metapolator/metapolator/branches{/branch}","tags_url":"https://api.github.com/repos/metapolator/metapolator/tags","blobs_url":"https://api.github.com/repos/metapolator/metapolator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metapolator/metapolator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metapolator/metapolator/git/refs{/sha}","trees_url":"https://api.github.com/repos/metapolator/metapolator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metapolator/metapolator/statuses/{sha}","languages_url":"https://api.github.com/repos/metapolator/metapolator/languages","stargazers_url":"https://api.github.com/repos/metapolator/metapolator/stargazers","contributors_url":"https://api.github.com/repos/metapolator/metapolator/contributors","subscribers_url":"https://api.github.com/repos/metapolator/metapolator/subscribers","subscription_url":"https://api.github.com/repos/metapolator/metapolator/subscription","commits_url":"https://api.github.com/repos/metapolator/metapolator/commits{/sha}","git_commits_url":"https://api.github.com/repos/metapolator/metapolator/git/commits{/sha}","comments_url":"https://api.github.com/repos/metapolator/metapolator/comments{/number}","issue_comment_url":"https://api.github.com/repos/metapolator/metapolator/issues/comments{/number}","contents_url":"https://api.github.com/repos/metapolator/metapolator/contents/{+path}","compare_url":"https://api.github.com/repos/metapolator/metapolator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metapolator/metapolator/merges","archive_url":"https://api.github.com/repos/metapolator/metapolator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metapolator/metapolator/downloads","issues_url":"https://api.github.com/repos/metapolator/metapolator/issues{/number}","pulls_url":"https://api.github.com/repos/metapolator/metapolator/pulls{/number}","milestones_url":"https://api.github.com/repos/metapolator/metapolator/milestones{/number}","notifications_url":"https://api.github.com/repos/metapolator/metapolator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metapolator/metapolator/labels{/name}","releases_url":"https://api.github.com/repos/metapolator/metapolator/releases{/id}","created_at":"2013-05-04T10:51:47Z","updated_at":"2015-05-26T13:10:33Z","pushed_at":"2015-06-11T03:56:08Z","git_url":"git://github.com/metapolator/metapolator.git","ssh_url":"git@github.com:metapolator/metapolator.git","clone_url":"https://github.com/metapolator/metapolator.git","svn_url":"https://github.com/metapolator/metapolator","homepage":"http://metapolator.com","size":168650,"stargazers_count":127,"watchers_count":127,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":105,"forks":17,"open_issues":105,"watchers":127,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metapolator/metapolator/pulls/603"},"html":{"href":"https://github.com/metapolator/metapolator/pull/603"},"issue":{"href":"https://api.github.com/repos/metapolator/metapolator/issues/603"},"comments":{"href":"https://api.github.com/repos/metapolator/metapolator/issues/603/comments"},"review_comments":{"href":"https://api.github.com/repos/metapolator/metapolator/pulls/603/comments"},"review_comment":{"href":"https://api.github.com/repos/metapolator/metapolator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metapolator/metapolator/pulls/603/commits"},"statuses":{"href":"https://api.github.com/repos/metapolator/metapolator/statuses/b42aebe2ae68caf70257197d4c5c269fa5ec5acb"}}}}