I am trying to make a combo display that just says
Combo 1 / 2 / 3 etc. and I am pretty sure I want to make a custom font rather than a zillion custom sprites that I glue together to form double / triple digit numbers. I might be wrong though!
What tools have you used to create custom fonts? I was about to get Font Forge and try it but it’s getting late. Or am I better off getting a free don’t.
And would you care to share any tips for implementing custom fonts? I will read the docs tomorrow
Making a font is not as trivial as you seem to imagine.
As a side note - admitting you did no reading and are going to sleep while asking people to get you the information you are risking just getting your question ignored. At least pretend to put some effort in.
It doesn’t need to be a zillion custom sprites; you can assemble “Combo 3264” from a “Combo” and each number from “0” to “9”. That’s not too much to just bake into textures if you want.
The fonts page was longer than I expected, but it looks like I can just make a sprite sheet and use the Import Window to change how the engine interprets the image; as font data. Which I can then use like a font after some setup, like telling how many rows / columns are in the sheet, followed by which ASCII value(s) I want to use.
Thank you, hexgrid. If the above fails, I will go back to drawing “Combo”, then each number 0-9, and a blank / background color texture. Then I’ll make some Hbox / Vbox amalgam that will have a number texture loaded into it based off the combo count.
I think you are talking about Bitmap Fonts. These are relatively easy to use in the engine but they do have 1 downside compared to actual .ttf font files.
If you want bold or italic you will have to have a separate sprites/sprite sheet for each.