emwin字库制作及汉字显示
发布时间:2020-12-15 19:51:13 所属栏目:百科 来源:网络整理
导读:备注:工具是nxp官方释放出来的,可以到链接下载:http://download.csdn.net/download/armwind/10103643 ??最近在研究emwin字体显示部分,但由于无法看到源码,也不知道emwin是如何实现的。也算是看葫芦画瓢,记录下字库制作过程。 目前我本地使用的工具集合
备注:工具是nxp官方释放出来的,可以到链接下载:http://download.csdn.net/download/armwind/10103643 一、生成完整字库
二、生成制定字体字库(缩小体积)
三、字库烧录进flash显示
GUI_CONST_STORAGE GUI_FONT_PROP GUI_FontFrontSong_20X20_Prop2 = {
0x79D1 /* first character */,0x79D1 /* last character */,&GUI_FontFrontSong_20X20_CharInfo[ 1] /* address of first character */,(GUI_CONST_STORAGE GUI_FONT_PROP *)0 /* pointer to next GUI_FONT_PROP */
};
GUI_CONST_STORAGE GUI_FONT_PROP GUI_FontFrontSong_20X20_Prop1 = {
0x5B66 /* first character */,0x5B66 /* last character */,&GUI_FontFrontSong_20X20_CharInfo[ 0] /* address of first character */,&GUI_FontFrontSong_20X20_Prop2 /* pointer to next GUI_FONT_PROP */
};
GUI_CONST_STORAGE GUI_FONT GUI_FontFrontSong_20X20 = {
GUI_FONTTYPE_PROP /* type of font */,20 /* height of font */,20 /* space of font y */,1 /* magnification x */,1 /* magnification y */,{&GUI_FontFrontSong_20X20_Prop1},17 /* Baseline */,9 /* Height of lowercase characters */,13 /* Height of capital characters */
};
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |