[mw_shl_code=c,true]void Show_FontX(u16 x,u16 y,u8 *font,u8 size,u8 mode)
{
u8 temp1,temp2;
u16 temp,t,t1,k;
u16 y0=y;
u16 csize=(size/8+((size%8)?1:0))*(size);//得到字体一个字符对应点阵集所占的字节数
temp1 = *font++;
temp2 = *font++;
for(k=0;k<20;k++)
{
if (temp1 == Fontlib[k].Index[0] && temp2 == Fontlib[k].Index[1])
{
for(t=0;t<csize;t++)
{
temp = Fontlib[k].Msk[t];
for(t1=0;t1<8;t1++)
{
if(temp&0x80)LCD_Fast_DrawPoint(x,y,POINT_COLOR);
else if(mode==0)LCD_Fast_DrawPoint(x,y,BACK_COLOR);
temp<<=1;
y++;
if((y-y0)==size)
{
y=y0;
x++;
break;
}
}
}
}
}
}
[/mw_shl_code] |