Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Good Source for Bitmap Fonts?

This thread is locked; no one can reply to it. rss feed Print
Good Source for Bitmap Fonts?
ZoriaRPG
Member #16,714
July 2017
avatar

Do any of you have collections of bitmap fonts for use with the Grabber, or can any of you suggest utilities for creating them? I used to have font creation tools on my old Mac systems, back when they used suitcase bitmap fonts, but since then, I have only created TTFs.

I'm hoping to generate a few fonts for ZC< including a Katakana font. if any of you happen to already have some 8x8 Katakana fonts, and wish to share them, that would also be splendid.

I have image sheets for the font, but I am not certain what to use these days to generate a bitmap font file that Allegro (4, grabber) can use.

What would be very useful, is if someone can tell me precisely what bitmap font spec the grabber uses.

Edit: i was looking for, this, it seems, with me eyes shut:
https://www.allegro.cc/depot/AllegroFontEditor/

Audric
Member #907
January 2001

The specifications for the image layout is in the allegro docs of load_bitmap_font()
https://www.allegro.cc/manual/4/api/fonts/load_bitmap_font

Quote:

The size of each character is determined by the layout of the image, which should be a rectangular grid containing all the ASCII characters from space (32) up to the tilde (126). The way the characters are separated depends on the colordepth of the image file:
paletted (8 bit) image file Use color 0 for the transparent portions of the characters and fill the spaces between each letter with color 255.
High (15/16 bit) and true (24/32 bit) color image file Use bright pink (maximum red and blue, zero green) for the transparent portions of the characters and fill the spaces between each letter with bright yellow (maximum red and green, zero blue).

You can choose any "spacing" between characters, but at least 1 pixel, example:
https://wiki.allegro.cc/index.php?title=File:7X8B.png

Go to: