{"action":"created","issue":{"url":"https://api.github.com/repos/nodebox/opentype.js/issues/125","labels_url":"https://api.github.com/repos/nodebox/opentype.js/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/nodebox/opentype.js/issues/125/comments","events_url":"https://api.github.com/repos/nodebox/opentype.js/issues/125/events","html_url":"https://github.com/nodebox/opentype.js/issues/125","id":88327762,"number":125,"title":"how to get the width of a space in a particular font-size?","user":{"login":"dhowe","id":737638,"avatar_url":"https://avatars.githubusercontent.com/u/737638?v=3","gravatar_id":"","url":"https://api.github.com/users/dhowe","html_url":"https://github.com/dhowe","followers_url":"https://api.github.com/users/dhowe/followers","following_url":"https://api.github.com/users/dhowe/following{/other_user}","gists_url":"https://api.github.com/users/dhowe/gists{/gist_id}","starred_url":"https://api.github.com/users/dhowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhowe/subscriptions","organizations_url":"https://api.github.com/users/dhowe/orgs","repos_url":"https://api.github.com/users/dhowe/repos","events_url":"https://api.github.com/users/dhowe/events{/privacy}","received_events_url":"https://api.github.com/users/dhowe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-15T06:01:07Z","updated_at":"2015-09-09T07:57:01Z","closed_at":null,"body":"not sure if this is a bug, but glyph.getMetrics() for a space returns:\r\n````\r\n{xMin: Infinity, yMin: Infinity, xMax: -Infinity, yMax: -Infinity, leftSideBearing: 0, rightSideBearing: Infinity}\r\n````\r\n\r\ncurrently I'm using the following to get the width:\r\n````javascript\r\nmyFont.charToGlyph(' ').advanceWidth * ((1 / myFont.unitsPerEm) * fontSize)\r\n"},"comment":{"url":"https://api.github.com/repos/nodebox/opentype.js/issues/comments/138816793","html_url":"https://github.com/nodebox/opentype.js/issues/125#issuecomment-138816793","issue_url":"https://api.github.com/repos/nodebox/opentype.js/issues/125","id":138816793,"user":{"login":"fdb","id":8477,"avatar_url":"https://avatars.githubusercontent.com/u/8477?v=3","gravatar_id":"","url":"https://api.github.com/users/fdb","html_url":"https://github.com/fdb","followers_url":"https://api.github.com/users/fdb/followers","following_url":"https://api.github.com/users/fdb/following{/other_user}","gists_url":"https://api.github.com/users/fdb/gists{/gist_id}","starred_url":"https://api.github.com/users/fdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdb/subscriptions","organizations_url":"https://api.github.com/users/fdb/orgs","repos_url":"https://api.github.com/users/fdb/repos","events_url":"https://api.github.com/users/fdb/events{/privacy}","received_events_url":"https://api.github.com/users/fdb/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T07:57:01Z","updated_at":"2015-09-09T07:57:01Z","body":"Can you send me the font that doesn't have the advanceWidth value for space? You can email it to me directly (frederik@debleser.be) if it's not freely available.\r\n\r\nI'll see if I can update the getMetrics code, in any case.\r\n"}}