如题,STemWin特殊符号℃打印不出来。
首先,使用STemWin提供的字体工具FontCvtST.exe,获取“℃”的C文件。
生成的C文件:
[mw_shl_code=c,true]/*********************************************************************
* SEGGER Microcontroller GmbH & Co. KG *
* Solutions for real time microcontroller applications *
* www.segger.com *
**********************************************************************
* *
* C-file generated by *
* *
* emWin Font Converter (ST) version 5.32 *
* Compiled Oct 8 2015, 11:58:55 *
* *
* (c) 1998 - 2015 Segger Microcontroller GmbH & Co. KG *
* *
**********************************************************************
* *
* Source file: centigrade_26.c *
* Font: 黑体 *
* Height: 26 *
* *
**********************************************************************
* *
* Initial font height: 26 *
* Range disabled: 0000 - FFFF *
* Character enabled: 0x2103 (8451) *
* *
**********************************************************************
*/
#include "GUI.h"
#ifndef GUI_CONST_STORAGE
#define GUI_CONST_STORAGE const
#endif
/* The following line needs to be included in any file selecting the
font.
*/
extern GUI_CONST_STORAGE GUI_FONT GUI_Fontcentigrade_26;
/* Start of unicode area <Letterlike Symbols> */
GUI_CONST_STORAGE unsigned char acGUI_Fontcentigrade_26_2103[104] = { /* code 2103, DEGREE CELSIUS */
________,________,________,________,
________,________,________,________,
__XXXX__,________,________,________,
__X___X_,________,________,________,
__X___X_,______XX,XXX_____,________,
__XX_X__,____XXXX,XXXXX___,________,
____X___,___XXX__,___XXX__,________,
________,__XX____,____XXX_,________,
________,_XX_____,_____XX_,________,
________,_XX_____,_____X__,________,
________,XX______,________,________,
________,XX______,________,________,
________,XX______,________,________,
________,XX______,________,________,
________,XX______,________,________,
________,XX______,________,________,
________,XX______,______XX,________,
________,_XX_____,_____XXX,________,
________,_XXX____,_____XX_,________,
________,__XXX___,___XXX__,________,
________,___XXXX_,_XXXX___,________,
________,____XXXX,XXXX____,________,
________,_______X,X_______,________,
________,________,________,________,
________,________,________,________,
________,________,________,________};
GUI_CONST_STORAGE GUI_CHARINFO GUI_Fontcentigrade_26_CharInfo[1] = {
{ 26, 26, 4, acGUI_Fontcentigrade_26_2103 } /* code 2103 */
};
GUI_CONST_STORAGE GUI_FONT_PROP GUI_Fontcentigrade_26_Prop1 = {
0x2103 /* first character */
,0x2103 /* last character */
,&GUI_Fontcentigrade_26_CharInfo[ 0] /* address of first character */
,(GUI_CONST_STORAGE GUI_FONT_PROP *)0 /* pointer to next GUI_FONT_PROP */
};
GUI_CONST_STORAGE GUI_FONT GUI_Fontcentigrade_26 = {
GUI_FONTTYPE_PROP /* type of font */
,26 /* height of font */
,26 /* space of font y */
,1 /* magnification x */
,1 /* magnification y */
,{&GUI_Fontcentigrade_26_Prop1}
,22 /* Baseline */
,12 /* Height of lowercase characters */
,18 /* Height of capital characters */
};
[/mw_shl_code]
然后加入工程,打印“”
[mw_shl_code=c,true]GUI_SetFont(CT_FONT);//摄氏度符号字体
GUI_DispStringAt("℃",600,20);[/mw_shl_code]
然而并没有打印出来,有人知道该怎么打印吗?是哪里出问题了?
|