ucOS XBF

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 */

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________,

  ________};


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值