Jump to content

coudboule

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hello, I'd like to use Icon fonts (typicons, font-awesome, ...) in my next Phaser (2.2.2) game but they are always cropped by Phaser (the right or top parts of each icon is missing). The problem seems to come from pixi.js when it tries to estimate font dimensions in PIXI.Text.prototype.updateText() using some sequence of characters. Is there a way to fix that in Phaser? Here is how I draw the icon X using typicons: var x = game.add.text(200, 200, '\ue122', { font: '50px typicons', fill: '#fff', align: 'center' }); The right part of the X icon will be slightly cut out. Thank you for y
×
×
  • Create New...