{"action":"created","issue":{"url":"https://api.github.com/repos/Pomax/Font.js/issues/28","labels_url":"https://api.github.com/repos/Pomax/Font.js/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/Pomax/Font.js/issues/28/comments","events_url":"https://api.github.com/repos/Pomax/Font.js/issues/28/events","html_url":"https://github.com/Pomax/Font.js/issues/28","id":86082464,"number":28,"title":"Timing out due to empty character","user":{"login":"Wildhoney","id":1528477,"avatar_url":"https://avatars.githubusercontent.com/u/1528477?v=3","gravatar_id":"","url":"https://api.github.com/users/Wildhoney","html_url":"https://github.com/Wildhoney","followers_url":"https://api.github.com/users/Wildhoney/followers","following_url":"https://api.github.com/users/Wildhoney/following{/other_user}","gists_url":"https://api.github.com/users/Wildhoney/gists{/gist_id}","starred_url":"https://api.github.com/users/Wildhoney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wildhoney/subscriptions","organizations_url":"https://api.github.com/users/Wildhoney/orgs","repos_url":"https://api.github.com/users/Wildhoney/repos","events_url":"https://api.github.com/users/Wildhoney/events{/privacy}","received_events_url":"https://api.github.com/users/Wildhoney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-08T08:31:03Z","updated_at":"2015-06-14T18:03:26Z","closed_at":null,"body":"It seems that the `printChar` it uses for testing the font is an empty string (`\"\"`).\r\n\r\nOn [line 425](https://github.com/Pomax/Font.js/blob/master/Font.js#L425):\r\n\r\n```javascript\r\nprintChar = String.fromCharCode(endChar);\r\n```\r\n\r\nWhere `endChar` is `129` for the [following Optima TTF font](https://www.dropbox.com/s/9v1scvq1263s3b4/optima.ttf?dl=0).\r\n\r\nI assume the fix in this instance is to detect if the yielded `printChar` is empty, and if so, to revert to the `printChar` default of `A`."},"comment":{"url":"https://api.github.com/repos/Pomax/Font.js/issues/comments/111858845","html_url":"https://github.com/Pomax/Font.js/issues/28#issuecomment-111858845","issue_url":"https://api.github.com/repos/Pomax/Font.js/issues/28","id":111858845,"user":{"login":"Vadimus","id":543416,"avatar_url":"https://avatars.githubusercontent.com/u/543416?v=3","gravatar_id":"","url":"https://api.github.com/users/Vadimus","html_url":"https://github.com/Vadimus","followers_url":"https://api.github.com/users/Vadimus/followers","following_url":"https://api.github.com/users/Vadimus/following{/other_user}","gists_url":"https://api.github.com/users/Vadimus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vadimus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vadimus/subscriptions","organizations_url":"https://api.github.com/users/Vadimus/orgs","repos_url":"https://api.github.com/users/Vadimus/repos","events_url":"https://api.github.com/users/Vadimus/events{/privacy}","received_events_url":"https://api.github.com/users/Vadimus/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T18:03:26Z","updated_at":"2015-06-14T18:03:26Z","body":"Got similar issue, chr = 29. Just added condition `chr > 32` to `printable`"}}