cpu_sam Posted June 2, 2018 Share Posted June 2, 2018 I'm trying to load a simple font, but phaser only reads xml. Can anyone teaches me how to convert a file fnt to xml? Because I can't load in phaser-ce, just give me the follow error: Phaser.Loader - jumpman: invalid XML Phaser.Loader - bitmapfont[jumpman]: invalid XML Line of code error: game.load.bitmapFont("jumpman", "./assets/fonts/fonteArial.png", "./assets/fonts/fonteArial.fnt"); Please someone give me a light! Link to comment Share on other sites More sharing options...
casey Posted June 2, 2018 Share Posted June 2, 2018 Full tutorial here: https://www.joshmorony.com/adding-custom-fonts-to-your-phaser-game/ cpu_sam 1 Link to comment Share on other sites More sharing options...
cpu_sam Posted June 3, 2018 Author Share Posted June 3, 2018 Thank you @casey, but yesterday I made my own converter from fnt (from Hiero) to xml. It jwas just needed to add xml's tags and attributes. Link to comment Share on other sites More sharing options...
Recommended Posts