Hemanthraj Posted March 21, 2018 Share Posted March 21, 2018 How to load custom font i need to use daft lowercase font instead of down below, var tiles = this.game.add.bitmapData(this.tileWidth, this.tileHeight); tiles.ctx.font = '30px Arial'; Link to comment Share on other sites More sharing options...
hcakar Posted March 21, 2018 Share Posted March 21, 2018 There are lots of examples about that. https://phaser.io/examples/v2/loader/load-bitmap-font You might wanna check on phaser's example before writing here. Link to comment Share on other sites More sharing options...
flow Posted March 22, 2018 Share Posted March 22, 2018 You can also include any custom font via CSS if you don't have a bitmap font, but they are usually not so "clear": @font-face { font-family: "MyFont"; src: url("assets/fonts/MyFOnt.ttf"); } Link to comment Share on other sites More sharing options...
Recommended Posts