
PT-20 Programming Guide
UserFont
Set user font from font file.
BOOL DispFont_SetFont(S32 slSelFont, const char *filename)
DispFont_SetFont(2,"D:\\Fonts\\Font16.cft");
TRUE : success
FALSE : fail
Get font type,width and height.
BOOL DispFont_GetFontInfo(S32 slSelFont, S32* slType, S32* slWidth,
S32* slHeight)
DispFont_GetFontInfo(2,&Type,&Width,&slHeight);
This function copies the slSelFont(0~9) info of font type ,width and height
to the variables whose address is specified in the arguments slType ,
slWidth and slHeight.
TRUE : success
FALSE : fail
0: 1 byte font file
1: 2 bytes font file
2: 2 bytes + 1bytes font file
Commentaires sur ces manuels