brew中文小字体显示问题
在手机上显示小字体,英文可以,但是中文是乱码,请教如何解决。
源码如下
static boolean HelloWorld_HandleEvent(AEEApplet * pMe, AEEEvent eCode, uint16 wParam, uint32 dwParam)
{
AECHAR szText[] = {0x6C49,0x5B57,'h', '\0'};
IFont* pINewFont; //Kyocera ADD
IFont* pIOldFont; //Kyocera ADD
switch (eCode){
case EVT_APP_START:
//Kyocera ADD ---->
if( AEE_SUCCESS== ISHELL_CreateInstance(pMe->m_pIShell, AEECLSID_FONT_BASIC10, (void**)&pINewFont) ) {
//Set Small Fonr and Keep Previous Font
if(!pINewFont)
{
IFONT_Release(pINewFont);
}
IDISPLAY_ClearScreen(pMe->m_pIDisplay);
pIOldFont = IDISPLAY_SetFont(pMe->m_pIDisplay, AEE_FONT_NORMAL, pINewFont);
IDISPLAY_DrawText(pMe->m_pIDisplay,AEE_FONT_NORMAL,szText,-1, 0,0,0,IDF_ALIGN_CENTER|IDF_ALIGN_MIDDLE);
pINewFont = IDISPLAY_SetFont(pMe->m_pIDisplay, AEE_FONT_NORMAL, pIOldFont);
IFONT_Release(pINewFont);
IDISPLAY_Update(pMe->m_pIDisplay);
}
return(TRUE);
case EVT_APP_STOP:
return(TRUE);
default:
break;
}
return(FALSE);
}