PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Limited bitmaps for GapiBitmapFont - is it possible?

Hello,
I would like to use only NUMBERS in bitmap font (to display score). So, how can I define a bitmap wich contains only numbers? As long as digits are relatively big, I don't want to waste memory storing all the symbols... Please advice!
Thanks.
Hi,

The easiest way to do it is to use the simple font format and add 14 dots (with one pixel space between them) at the beginning of the bitmap.

The dots are for the characters !"#$%&'()*+,-./

Add your digits 0123456789 to the right of the dots. Just leave the rest of the font. GapiDraw will not care if you don't use all the ASCII characters. The space between the first dot and the left border of the font bitmap (the place of your first dot) is the number of pixels each <space> represents.

/Johan
/Johan