Jump to content

Bitmap font not working


shapevoid
 Share

Recommended Posts

My code as follows:

// loading
this.game.load.bitmapFont("futura", "assets/image/"+this.game.pr+"x/futura.png", "assets/image/"+this.game.pr+"x/futura.xml");

 

// game
var score = this.game.add.bitmapText(this.game.width/2,this.game.height/2 - 200, 'futura', "aaa", 100);

I see nothing, no errors in console I can trace out the score object and position, scale, value, everything is fine but the text doesn't show. I can run the exact same code with the 'desyrel' font xml and png and get the font showing so my xml appears to be the issue however I can see what the problem is?

I created the png and xml with the litter tool (renamed .fnt output file to .xml)

any ideas?

futura.xml

futura.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...