florinc, forgive me for being thick, but after reading your site, I still can't figure it out.
on the site, it gives an example of bitmap[7][14]. If i understand correctly, its the number of lines (there are 14 lines in that one pacman character).
uint16_t PROGMEM bitmap[7][14] = {
{
0x02E0, // ____XXXXX_____
0x0FF8, // __XXXXXXXXX___
0x07FC, // ___XXXXXXXXX__
0x03FC, // ____XXXXXXXX__
0x01FE, // _____XXXXXXXX_
0x00FE, // ______XXXXXXX_
0x007E, // _______XXXXXX_
0x007E, // _______XXXXXX_
0x00FE, // ______XXXXXXX_
0x01FE, // _____XXXXXXXX_
0x03FC, // ____XXXXXXXX__
0x07FC, // ___XXXXXXXXX__
0x0FF8, // __XXXXXXXXX___
0x02E0, // ___XXXXX______
},
If I look at the font from the library, there are 8 lines..
unsigned char PROGMEM font_8x16[95][14] = {
{0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000}, //
{0x0000,0x0000,0x7e02,0x7fe7,0x7e02,0x0000,0x0000,0x0000}, // !
so should it not be
unsigned char PROGMEM font_8x16[95][8]
?
it looks like it has to be unsigned char, because the existing fonts in the old code (my2font), look like this:
unsigned char PROGMEM my2font[256][8]={
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, // 0x00
{0x7E,0x81,0xA9,0x8D,0x8D,0xA9,0x81,0x7E}, // 0x01
again only 8.
Now onto the code. In the main pde, there is a variable that defines the number of columns:
// insert here the number of columns of your font files
// the compiler will comment how large the number of columns
// should be
#define NCOLUMNS 8
my guess is that this should be 8, to match the font variable, correct? I've tried other values, but the compiler errors if it doesn't match the number in brackets in the font.h file.
The second location in code is this:
scrolltextsizexcolor(8,"ABCDEFG ",1,GREEN, 0,font_8x16,8,8,'T',0);
the font_8x16 is the referenced font name, and then the first 8 is "number of columns", second 8 is "number of rows"
no matter what I try for any of these settings, I either get garbled crap on the screen, or it displays the wrong characters...for example if i enter "ABCDEFG", it shows "abcdefg"... if I enter "!@#$%"...I get "1" followed by a buncha crap.