How to use AEE_FONT_USER_1/AEE_FONT_USER_2 ?
簡單來說BREW DrawText Font不只有這些而已
AEEFont:
Description
This ENUM specifies the logical font type used in IDisplay
text drawing operations.
enum { AEE_FONT_NORMAL=0x8000, AEE_FONT_BOLD, AEE_FONT_LARGE, AEE_FONT_ITALIC, AEE_FONT_BOLD_ITALIC, AEE_FONT_LARGE_ITALIC, AEE_FONT_USER_1, AEE_FONT_USER_2, AEE_FONT_TOTAL };
可以利用
1.建立InstanceISHELL_CreateInstance(me->piShell, AEECLSID_FONT_STANDARD11, (void**)&piFontUser1);
2.在Drawtext之前setFontIDisplay_SetFont(me->piDisplay, AEE_FONT_USER_1, piFontUser1);
3.DrawIDISPLAY_DrawText(pMe -> a.m_pIDisplay,
AEE_FONT_USER_1,
hello,
-1 ,
0 ,
0 ,
NULL,
IDF_ALIGN_CENTER );
大功告成
:)
沒有留言:
張貼留言