Jump to content

phaser can i load my own .ttif font?


pranadevil
 Share

Recommended Posts

You can use bitmapText to add all of your favorite fonts !

 

Transform your font here : http://kvazars.com/littera/

 

load it :

this.game.load.bitmapFont('yourFontName', 'assets/typos/yourFont.png', 'assets/typos/yourFont.xml');

and use it : 

yourFont = game.add.bitmapText(676, 209, 'yourFontName','yourTextHere', 64);
Link to comment
Share on other sites

Yeah, but as a bitmap font you'll get one color in one size. The advantage of CSS font-face is that you can use custom font with any color/size you want. And being able to load that into the game would be great.

Link to comment
Share on other sites

Yeah, but as a bitmap font you'll get one color in one size. The advantage of CSS font-face is that you can use custom font with any color/size you want. And being able to load that into the game would be great.

True.. I don't know other solutions ! Sory

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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