[TriEmbed] need 64x64 and smaller font bitmap generator

Pete Soper pete at soper.us
Mon Mar 17 16:33:01 CDT 2014


I'd like to display two digit numbers on a 128x64 graphic display (i.e. 
two 64x64 pixel digits) and wonder if somebody has made a site that 
generates C declarations for bitmap fonts like this on the fly?

For example, with Stanley Huang's MicroLCD library code there is an 
inline declaration of a 16x24 font like the one at the end of this 
message. I guess I'm really just looking for a source for a font that 
could be scaled (and not look terrible when scaled: notice this 16x24 
font wouldn't scale to 64x64). But I have no idea what resources exist 
and hope somebody on this list does. My idea of nirvana would be a web 
site where you pick an X and Y size, pick a font that scales to that 
size and get a C or C++ declaration for some alphabet that can be an 
index into the array of bit maps.

-Pete


// fonts data
const PROGMEM unsigned char digits16x24[][48] = {
{0x00,0x00,0x00,0xF0,0xFF,0x0F,0xFC,0xFF,0x3F,0xFE,
0xFF,0x7F,0xFE,0xFF,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0x07,0x00,0xE0,0x07,0x00,0xE0,0x07,0x00,0xE0,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0xFF,0x7F,0xFE,0
xFF,0x7F,0xFC,0xFF,0x3F,0xF0,0xFF,
0x0F},/*"0",0*/





More information about the TriEmbed mailing list