Jump to content

Using bitmap fonts (.fon) files with Phaser


grumpygamer
 Share

Recommended Posts

You can use this tool: http://kvazars.com/littera/

 

Make sure the font you are trying to use is a true type font (ttf) (the one you linked is not... sorry)

 

And then add them in your preload like this: 

this.game.load.bitmapFont('fontName','fonts/fontName.png', 'fonts/fontName.fnt');
// Usagevar text = game.add.bitmapText(0, 0, 'fontName', "my text!", 24); // make sure the text is actually a string!
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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