You can embed TTF fonts by including them in your assets, like so:
<assets path="assets/fonts" rename="fonts"/>
Once the font is embedded, you can have FlxText
instances use via font
, like so:
text.font = "fonts/Arial Rounded Bold.ttf";
You can also specify system fonts via text.font = "Arial";
, but know that not all devices may have your desired font installed, so it’s usually recommended to include the font in the project’s assets