{"action":"closed","issue":{"url":"https://api.github.com/repos/excaliburjs/Excalibur/issues/471","repository_url":"https://api.github.com/repos/excaliburjs/Excalibur","labels_url":"https://api.github.com/repos/excaliburjs/Excalibur/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/excaliburjs/Excalibur/issues/471/comments","events_url":"https://api.github.com/repos/excaliburjs/Excalibur/issues/471/events","html_url":"https://github.com/excaliburjs/Excalibur/issues/471","id":91514137,"number":471,"title":"Default fontFamily for Label doesn't work with custom FontSize/FontUnit","user":{"login":"jedeen","id":675840,"avatar_url":"https://avatars.githubusercontent.com/u/675840?v=3","gravatar_id":"","url":"https://api.github.com/users/jedeen","html_url":"https://github.com/jedeen","followers_url":"https://api.github.com/users/jedeen/followers","following_url":"https://api.github.com/users/jedeen/following{/other_user}","gists_url":"https://api.github.com/users/jedeen/gists{/gist_id}","starred_url":"https://api.github.com/users/jedeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedeen/subscriptions","organizations_url":"https://api.github.com/users/jedeen/orgs","repos_url":"https://api.github.com/users/jedeen/repos","events_url":"https://api.github.com/users/jedeen/events{/privacy}","received_events_url":"https://api.github.com/users/jedeen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/excaliburjs/Excalibur/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"kamranayub","id":563819,"avatar_url":"https://avatars.githubusercontent.com/u/563819?v=3","gravatar_id":"","url":"https://api.github.com/users/kamranayub","html_url":"https://github.com/kamranayub","followers_url":"https://api.github.com/users/kamranayub/followers","following_url":"https://api.github.com/users/kamranayub/following{/other_user}","gists_url":"https://api.github.com/users/kamranayub/gists{/gist_id}","starred_url":"https://api.github.com/users/kamranayub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamranayub/subscriptions","organizations_url":"https://api.github.com/users/kamranayub/orgs","repos_url":"https://api.github.com/users/kamranayub/repos","events_url":"https://api.github.com/users/kamranayub/events{/privacy}","received_events_url":"https://api.github.com/users/kamranayub/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/excaliburjs/Excalibur/milestones/7","html_url":"https://github.com/excaliburjs/Excalibur/milestones/0.7.0%20Release","labels_url":"https://api.github.com/repos/excaliburjs/Excalibur/milestones/7/labels","id":858667,"number":7,"title":"0.7.0 Release","description":"","creator":{"login":"jedeen","id":675840,"avatar_url":"https://avatars.githubusercontent.com/u/675840?v=3","gravatar_id":"","url":"https://api.github.com/users/jedeen","html_url":"https://github.com/jedeen","followers_url":"https://api.github.com/users/jedeen/followers","following_url":"https://api.github.com/users/jedeen/following{/other_user}","gists_url":"https://api.github.com/users/jedeen/gists{/gist_id}","starred_url":"https://api.github.com/users/jedeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedeen/subscriptions","organizations_url":"https://api.github.com/users/jedeen/orgs","repos_url":"https://api.github.com/users/jedeen/repos","events_url":"https://api.github.com/users/jedeen/events{/privacy}","received_events_url":"https://api.github.com/users/jedeen/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":20,"state":"open","created_at":"2014-11-08T20:18:49Z","updated_at":"2016-05-26T03:18:28Z","due_on":"2016-05-31T05:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-27T21:04:12Z","updated_at":"2016-05-26T03:18:28Z","closed_at":"2016-05-26T03:18:28Z","body":"## Reproduce\r\n\r\n```js\r\nvar lbl = new Label('x');\r\nlbl.fontSize = 24;\r\nlbl.fontUnit = FontUnit.Px;\r\n```\r\n\r\nObserve font size is still 10px, the default size.\r\n\r\n## Issue\r\n\r\nBecause default `fontFamily` is `10px sans-serif`, the formatted string that gets built in `_fontDraw` is:\r\n\r\n    \"24px 10px sans-serif\"\r\n\r\nTo fix, we just need to set default `fontSize` and remove `10px` from the `fontFamily` property in constructor."}}
{"actor":{"display_login":"eonarheim"}}