1:用软件生成的C文件:
extern GUI_CONST_STORAGE GUI_FONT GUI_Fontqaz;
/* Start of unicode area
*/
GUI_CONST_STORAGE unsigned char acGUI_Fontqaz_5BB6[ 72] = { /* code 5BB6 */
________,________,________,
________,__XX____,________,
________,___XX___,________,
____X___,____X___,________,
____XXXX,XXXXXXXX,XXXXXX__,
___XX___,________,____X___,
__XX____,________,___X____,
_____XXX,XXXXXXXX,XX______,
GUI_CONST_STORAGE GUI_CHARINFO GUI_Fontqaz_CharInfo[9] = {
{ 24, 24, 3, acGUI_Fontqaz_5BB6 } /* code 5BB6 */
};
GUI_CONST_STORAGE GUI_FONT_PROP GUI_Fontqaz_Prop1 = {
0x5BB6 /* first character */
,0x5BB6 /* last character */
,&GUI_Fontqaz_CharInfo[ 0] /* address of first character */
,&GUI_Fontqaz_Prop2 /* pointer to next GUI_FONT_PROP */
};
GUI_CONST_STORAGE GUI_FONT GUI_Fontqaz = {
GUI_FONTTYPE_PROP /* type of font */
,24 /* height of font */
,24 /* space of font y */
,1 /* magnification x */
,1 /* magnification y */
,{&GUI_Fontqaz_Prop1}
,21 /* Baseline */
,11 /* Height of lowercase characters */
,16 /* Height of capital characters */
};
2:这样显示不出来
extern GUI_CONST_STORAGE GUI_FONT GUI_Fontqaz;
GUI_UC_SetEncodeUTF8();// 使能UTF-8解码格式
GUI_SetFont(&GUI_Fontqaz);
GUI_DispStringHCenterAt("家", 160, 5);
GUI_Clear(); //清除活动窗口