This has been an issue for me since the start of creating my game and I just couldn't find where to change the font in the code of the game to make it work. SO I took it upon myself to create a plugin that manages the font of the title.
A few steps to make it work:
1. Have your downloaded font in the /fonts file of your game and have it saved as .ttf file
2. Download the plugin and put it in /plugins
3. Open the file of the plugin and change the:
const TITLE_FONT = "YOUR_FONT_NAME"; to the name of your desired font
And here as well but with the .ttf
FontManager.load(TITLE_FONT, "YOUR_FONT_NAME.ttf");
You can easily change the position of the font by editing this line:
bitmap.height / 2 - TITLE_SIZE / 2 - 40,
-40 will move it up and, deleting it will put it in the center, +40 will push it down and so on and on.
I think any other changes (such as size and color) are pretty much logical.
4. Open your game, turn on the plugin and have fun with title fonts!
If you have any advices or you actually know something to make it better or easier I'm more than happy to listen since I'm just a beginner :3
A few steps to make it work:
1. Have your downloaded font in the /fonts file of your game and have it saved as .ttf file
2. Download the plugin and put it in /plugins
3. Open the file of the plugin and change the:
const TITLE_FONT = "YOUR_FONT_NAME"; to the name of your desired font
And here as well but with the .ttf
FontManager.load(TITLE_FONT, "YOUR_FONT_NAME.ttf");
You can easily change the position of the font by editing this line:
bitmap.height / 2 - TITLE_SIZE / 2 - 40,
-40 will move it up and, deleting it will put it in the center, +40 will push it down and so on and on.
I think any other changes (such as size and color) are pretty much logical.
4. Open your game, turn on the plugin and have fun with title fonts!
If you have any advices or you actually know something to make it better or easier I'm more than happy to listen since I'm just a beginner :3