bitmap fonts

Is there already some (build-in) code that allows me to use bitmap fonts? Like I have the numbers 0-9 in a 32x32 grid in a bitmap and I want to use that to display numeric values like scores, hp, mp, etc.

Yes I could code one myself but I was wondering if it didn't already exist. Or perhaps it comes with Ace and I didn't see it.

I attached a small bitmap font sample (including characters).

fontsample.png
So far there is one script that I know that does it.
Thanks exactly what I was looking for 🙂 and for only 7$ if it goes commercial. Hopefully it will work with the word-wrappers.

If I could just find a SFONT generator/converter..
Without a SFONT generator/converter I see no purpose in Viktors script. And I could not find any on the entire net. All links to such software from SFont wikis/documentation are ALL broken and the software did not pop up using Google either. Making such fonts all by hand is kinda silly and if I have to create software that creates/converts SFONTS then I might as well just get a script that uses bitmap fonts instead.
https://code.google.com/p/simple-renpy-tools/wiki/SFonts


Not sure if this takes any font and converts it into an SFont.
Installed all prerequisites.

# Windows command prompt:C:\Python27>E:\Downloads\make_sfont.py c:\a.bmp a:\b.bmpTraceback (most recent call last):  File "E:\Downloads\make_sfont.py", line 44, in <module>    make_sfont(sys.argv[1], sys.argv[2])  File "E:\Downloads\make_sfont.py", line 12, in make_sfont    _, _, _, alpha = letters.getpixel((x, y))ValueError: need more than 3 values to unpackIt takes an input image and and output image.The wiki has not yet added any content to "Using the command line version" or any other documentation. Also weird that it does not ask me for a font?

Opening the py file shows this:

def make_sfont(letters_image, output_name = None):letters_image? What kind of letters_image? Or do I need a row with characters in an image and then all this program does is add a pink line to it?
Ya, it looks like the whole point of SFont are those extra pink lines at the top. I don't know what the format needs to be but presumably you can just open your ttf file and copy the characters at the top into an image file and run it through.


I don't know whether the characters need to be arranged in a certain way, but you may need to follow this format shown in the sample Sfonts


http://www.linux-games.com/sfont/fonts.html
Ah so I need to:

1. Create an image with some font creater program (like one from XNA)

2. (optional) Convert it to a TTF (some bitmap fonts will not be compatible with that sfonts converter) with some other program. Because some bitmap fonts will look like this: http://blogs.msdn.com/blogfiles/shawnhar/WindowsLiveWriter/Bitmapfonts_B123/image1.png

3. Create a 1-line-bitmap image from that TTF

4, Run this converter over it.

5. Use&configure Viktors script

Original thread: https://forums.rpgmakerweb.com/threads/bitmap-fonts.20201/