初级会员

- 积分
- 149
- 金钱
- 149
- 注册时间
- 2015-10-16
- 在线时间
- 18 小时
|

楼主 |
发表于 2016-3-22 16:04:57
|
显示全部楼层
我表述有点不好,我的意思是就是TFT LCD它的最大的显示字符是24号的,我想让字体号变大一点,就是比如我要42、64等的字体,我用来取模取64的,然后还是不行?不知道哪里出问题?
for(t=0;t<csize;t++)
{
if(size==12)temp=asc2_1206[num][t]; //调用1206字体
else if(size==16)temp=asc2_1608[num][t]; //调用1608字体
else if(size==24)temp=asc2_2412[num][t]; //调用2412字体
else if(size==64)temp=asc2_6432[num][t];//---------》这里是我添加的一句。
else return; //没有的字库
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>=lcddev.height)return; //超区域了
if((y-y0)==size)
{
y=y0;
x++;
if(x>=lcddev.width)return; //超区域了
break;
}
}
} |
|