XBF和.c格式的字体是一致的,因此需要先弄明白.c格式的字体文件。
.c格式的字体可以通过一个破解版本来生成。
XBF格式实际上一个.c格式的字体的二进制的映射。
GUI_FLASH const GUI_CHARINFO GUI_FontArialBold12pt_CharInfo[1325] = {
{ 3, 3, 1, (void GUI_FLASH *)&acFontArialBold12pt_0020 } /* code 0020 */
,{ 3, 3, 1, (void GUI_FLASH *)&acFontArialBold12pt_0021 } /* code 0021 */
,{ 6, 6, 1, (void GUI_FLASH *)&acFontArialBold12pt_0022 } /* code 0022 */
,{ 7, 7, 1, (void GUI_FLASH *)&acFontArialBold12pt_0023 } /* code 0023 */
,{ 7, 7, 1, (void GUI_FLASH *)&acFontArialBold12pt_0024 } /* code 0024 */
,{ 9, 9, 2, (void GUI_FLASH *)&acFontArialBold12pt_0025 } /* code 0025 */
/
GUI_FLASH const GUI_FONT_PROP GUI_FontArialBold12pt_Prop1 = {
0x0020 /* first character */
,0x007E /* last character */
,&GUI_FontArialBold12pt_CharInfo[ 0] /* address of first character */
,(void GUI_FLASH *)&GUI_FontArialBold12pt_Prop2 /* pointer to next GUI_FONT_PROP */
};
GUI_FLASH const GUI_FONT GUI_FontArialBold12pt = {
GUI_FONTTYPE_PROP /* type of font */
,15 /* height of font */
,15 /* space of font y */
,1 /* magnification x */
,1 /* magnification y */
,(void GUI_FLASH *)&GUI_FontArialBold12pt_Prop1
};
///
/* Start of unicode area <Basic Latin> */
GUI_FLASH const unsigned char acFontArialBold12pt_0020[ 15] = { /* code 0020 */
________,
________,
________,
________,
________,
________,
________,
________,
________,
________,
________,
________,
________,
________,
________};