New games every week!
Bitmap Font Creator Blog
11th April 2013
Coders Tool Ahead

I don't know why I only just realised this, but I don't think I ever posted my Bitmap Font Creator, to go with the Monkey Framework!
whoops!

Anyway, here's that.

Bitmap Font Creator


It works nice and easily.
You give it a bucketload of .ttf files in the "fonts" folder, then run it, and it outputs a bunch of monospaced bitmap font images in the output folder.

Open the associated .txt file to see the width and height of the font, which you should use when LoadFont'ing.
Be sure you drag all three sizes of .png over to the data folder. (.png, -hd.png and -hd2.png)

I never bothered adding a UseFont() function, but you can easily change J_Font to the image number of your font, to switch it about, between text drawing. It does work, I just haven't made it any neater! sorry!!

Um, if you want fancier fonts, you can open the .png up in an art tool, and faff about with it, or fiddle around with the tool's sourcecode (.bmx BlitzMax included) to try and come up with something nicer.

Sorry it isn't anything AWESOME!!!! But it was only needed for a simple task, so I didn't bother making it any better than it needed to be.
Views 48, Upvotes 11  
Tools
New games every week!
Site credits : Site built from the ground up, in php, using Programmer's Notepad 2, and a very bored Jayenkai.
(c) Jayenkai 2023 and onwards, RSS feed

Blog - Bitmap Font Creator - AGameAWeek