Bitmap text - samme/phaser3-faq GitHub Wiki
Bitmap text is drawn from a bitmap texture frame and font data. It's fast and looks good, but you have a limited character set.
Bitmap fonts
From an image and font data
Bitmap font generators make an image and XML data file. Use load.bitmapFont()
:
this.load.bitmapFont('key', 'font.png', 'font.xml');
From an atlas and font data
Load the image and XML data separately, then call ParseFromAtlas()
to create the font.
From a "retro font" image
Load the image and then call RetroFont.Parse()
with the font data.
Bitmap text
These are game objects that display text using the font. There are two classes, BitmapText and DynamicBitmapText. They are both "dynamic" in the sense that you can change the text contents at any time. The difference is that DynamicBitmapText has callbacks for per-character rendering effects and scrolling.