英文和汉字不一样
//常用ASCII表
//偏移量32
//ASCII字符集
//偏移量32
//大小:12*6
const unsigned char asc2_1206[95][12]={
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*" ",0*/
{0x00,0x00,0x04,0x04,0x04,0x04,0x04,0x04,0x00,0x04,0x00,0x00},/*"!",1*/
{0x00,0x14,0x0A,0x0A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},/*""",2*/
{0x00,0x00,0x14,0x14,0x3F,0x14,0x0A,0x3F,0x0A,0x0A,0x00,0x00},/*"#",3*/
...
typedef struct
{
unsigned char Index[2];
char Msk[32];
}typFNT_GB16;
//字体取模:宋体常规小四 横向取模 字体正序
//阴码 逐行 顺向
const typFNT_GB16 tfont16[]=
{
"徐",0x10,0x40,0x10,0x40,0x20,0xA0,0x41,0x10,0x92,0x08,0x15,0xF6,0x20,0x40,0x60,0x40,
0xA7,0xFC,0x20,0x40,0x22,0x50,0x22,0x48,0x24,0x44,0x28,0x44,0x21,0x40,0x20,0x80,/*0*/
"州",0x10,0x04,0x10,0x84,0x10,0x84,0x10,0x84,0x10,0x84,0x54,0xA4,0x52,0x94,0x52,0x94,
0x90,0x84,0x10,0x84,0x10,0x84,0x10,0x84,0x20,0x84,0x20,0x84,0x40,0x04,0x80,0x04,/*1*/
... |