Hey everyone! I used a variety of methods to load custom fonts in Phaser games. After some reading and experimenting, the FontFace object is literally the best thing to happen to me. I decided to write a blog about it because I don’t want to forgot how I did it haha, and hopefully it helps you too.
My usual setup involved NPM + TypeScript. However, it shouldn’t be a hard jump if you’re one to load Phaser with the script tag.
It uses webfontloader, which I don’t like using (fear of software that’s no longer updated? lol). I need to explore Phaser plugins more! However, that plugin still requires CSS, whereas I prefer the pure JS method for the time being