pranadevil Posted March 18, 2015 Share Posted March 18, 2015 hey guys is possible to attach to my assets folder a font .ttif ?if yes how i can use it in my game? how i do load it? as a sprite ?? Link to comment Share on other sites More sharing options...
Nikow Posted March 18, 2015 Share Posted March 18, 2015 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 More sharing options...
end3r Posted March 18, 2015 Share Posted March 18, 2015 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 More sharing options...
Nikow Posted March 18, 2015 Share Posted March 18, 2015 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 More sharing options...
Recommended Posts