{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/1602","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/1602/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/1602/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/1602/events","html_url":"https://github.com/photonstorm/phaser/issues/1602","id":56844539,"number":1602,"title":"Setting the font property on a BitmapText instance has no effect - Phaser 2.2.2","user":{"login":"starnut","id":1257434,"avatar_url":"https://avatars.githubusercontent.com/u/1257434?v=3","gravatar_id":"","url":"https://api.github.com/users/starnut","html_url":"https://github.com/starnut","followers_url":"https://api.github.com/users/starnut/followers","following_url":"https://api.github.com/users/starnut/following{/other_user}","gists_url":"https://api.github.com/users/starnut/gists{/gist_id}","starred_url":"https://api.github.com/users/starnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starnut/subscriptions","organizations_url":"https://api.github.com/users/starnut/orgs","repos_url":"https://api.github.com/users/starnut/repos","events_url":"https://api.github.com/users/starnut/events{/privacy}","received_events_url":"https://api.github.com/users/starnut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-06T17:51:53Z","updated_at":"2015-02-08T22:08:01Z","closed_at":"2015-02-08T22:08:01Z","body":"Setting the *font* property on a BitmapText instance after creating it does not change the font's face as expected:\r\n```javascript\r\nmyBitmapText.font = \"myNewFontKey\"; // Does not update the font's face\r\n```\r\nApparently, Phaser misses to update the private PIXI property *faceName*, which refers to the font cache key that is actually being used for rendering in the *updateText()* method:\r\n```javascript\r\n// Current workaround:\r\nmyBitmapText.fontName = \"myNewFontKey\"; // Works, but isn't documented anywhere since fontName is used as a private helper within PIXI.BitmapText\r\n```\r\nMaybe updating *fontName* in the *font* setter would do the trick?"},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/comments/73435058","html_url":"https://github.com/photonstorm/phaser/issues/1602#issuecomment-73435058","issue_url":"https://api.github.com/repos/photonstorm/phaser/issues/1602","id":73435058,"user":{"login":"photonstorm","id":164476,"avatar_url":"https://avatars.githubusercontent.com/u/164476?v=3","gravatar_id":"","url":"https://api.github.com/users/photonstorm","html_url":"https://github.com/photonstorm","followers_url":"https://api.github.com/users/photonstorm/followers","following_url":"https://api.github.com/users/photonstorm/following{/other_user}","gists_url":"https://api.github.com/users/photonstorm/gists{/gist_id}","starred_url":"https://api.github.com/users/photonstorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/photonstorm/subscriptions","organizations_url":"https://api.github.com/users/photonstorm/orgs","repos_url":"https://api.github.com/users/photonstorm/repos","events_url":"https://api.github.com/users/photonstorm/events{/privacy}","received_events_url":"https://api.github.com/users/photonstorm/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T22:08:01Z","updated_at":"2015-02-08T22:08:01Z","body":"Thanks, fixed in dev."}}