brentstrandy Posted February 13, 2017 Share Posted February 13, 2017 I'm using Phaser to upgrade an old flash game. Unfortunately, all of the text in my game seems to have fairly poor quality. I've attached two comparison images* and included my code below. *I understand the fonts on the two images are different this.buttonText = game.add.text(35, 0, buttonText, { 'font': '18px', 'fill': '#000000' }, this.parentGroup); Any idea why Phaser's text would appear blurry? Brent Link to comment Share on other sites More sharing options...
espace Posted February 13, 2017 Share Posted February 13, 2017 The best option is to use bitmapfont and you will have no problem. Check this site http://kvazars.com/littera/ To generate PNG file of your font and use bitmapfont in phaser. https://phaser.io/examples/v2/loader/load-bitmap-font Link to comment Share on other sites More sharing options...
espace Posted February 13, 2017 Share Posted February 13, 2017 And with this no problem if the font is not installed on the device> the font is a PNG file.:) Link to comment Share on other sites More sharing options...
samme Posted February 13, 2017 Share Posted February 13, 2017 Is the game scaled up (e.g. with SHOW_ALL)? Also examples/v2/text/text-resolution will help. Link to comment Share on other sites More sharing options...
Recommended Posts