font_type.c[cpp] view plaincopy
- /*********************************************************************
- * 字体类型定义文件
- * (c)copyright 2015,jdh
- * All Right Reserved
- *修改日期:2015/2/2 by jdh
- *修改日期:2015/2/3 by jdh
- *修改日期:2015/2/5 by jdh
- **********************************************************************/
- #include "font_type.h"
- extern
int GUIPROP_X_GetCharDistX(U16P c); - extern
void GUIPROP_X_DispChar(U16P c) ;
- extern
void GUI_UC_SetEncodeNone_User(void);
- /*********************************************************************
- * 全局变量
- **********************************************************************/
- /*********************************************************************
- * 当前字体
- **********************************************************************/
- uint8_t Font_Now = 0;
- GUI_CONST_STORAGE GUI_CHARINFO GUI_FontHZ12_CharInfo[2] =
- {
- { 6, 6, 1, (void *)"1:/system/gui_font/ASC6x12.bin" }, //&ASC_ROM_8X16
- { 12, 12, 2, (void *)"1:/system/gui_font/HZ12x12.bin"}, //&HZ_ROM_16X16
- };
- GUI_CONST_STORAGE GUI_FONT_PROP GUI_FontHZ12_PropHZ= {
- // 0xA1A1,
- // 0xF7FE,
- 0xA1A1,
- 0xFFFF,
- &GUI_FontHZ12_CharInfo[1],
- (void *)0,
- };
- GUI_CONST_STORAGE GUI_FONT_PROP GUI_FontHZ12_PropASC= {
- 0x0000,
- 0x007F,
- &GUI_FontHZ12_CharInfo[0],
- (void GUI_CONST_STORAGE *)&GUI_FontHZ12_PropHZ,
- };
- //GUI_CONST_STORAGE GUI_FONT GUI_FontHZ12 =
- //{
- // GUI_FONTTYPE_PROP_USER,
- // 12, //XSIZE
- // 12, //YSIZE
- // 1, //X方向放大倍数
- // 1, //Y方向放大倍数
- // (void GUI_CONST_STORAGE *)&GUI_FontHZ12_PropASC
- //};
- GUI_CONST_STORAGE GUI_FONT GUI_FontHZ12 =
- {
- GUI_FONTTYPE_PROP_USER,
- 12, //XSIZE
- 12, //YSIZE
- 1, //X方向放大倍数
- 1, //Y方向放大倍数
- (void GUI_CONST_STORAGE *)&GUI_FontHZ12_PropASC
- };
- GUI_CONST_STORAGE GUI_FONT GUI_FontHZ12x2 =
- {
- GUI_FONTTYPE_PROP_USER,
- 12,
- 12,
- 2,
- 2,
- (void GUI_CONST_STORAGE *)&GUI_FontHZ12_PropASC
- };
- /*********************************************************************
- * GUI结构:7*8点阵ASCII标准字符
- **********************************************************************/
- GUI_CONST_STORAGE GUI_CHARINFO GUI_ASCII_7X8_CharInfo[1] =
- {
- { ASCII_7X8_WIDTH, ASCII_7X8_HEIGHT, 1, (void *)0 },
- };
- GUI_CONST_STORAGE GUI_FONT_PROP GUI_ASCII_7X8_PropASC =
- {
- 0x0000,
- 0x007F,
- &GUI_ASCII_7X8_CharInfo[0],
- (void *)0
- };
- GUI_CONST_STORAGE GUI_FONT GUI_ASCII_7X8 =
- {
- GUI_FONTTYPE_PROP_USER,
- ASCII_7X8_WIDTH * 2, //XSIZE
- ASCII_7X8_HEIGHT, //YSIZE
- 1, //X方向放大倍数
- 1, //Y方向放大倍数
- (void GUI_CONST_STORAGE *)&GUI_ASCII_7X8_PropASC
- };
- /*********************************************************************
- * GUI结构:7*8点阵ASCII粗体字符
- **********************************************************************/
- GUI_CONST_STORAGE GUI_CHARINFO GUI_ASCII_BOLD_7X8_CharInfo[1] =
- {
- { ASCII_BOLD_7X8_WIDTH, ASCII_BOLD_7X8_HEIGHT, 1, (void *)0 },
- };
- GUI_CONST_STORAGE GUI_FONT_PROP GUI_ASCII_BOLD_7X8_PropASC =
- {
- 0x0000,
- 0x007F,
- &GUI_ASCII_BOLD_7X8_CharInfo[0],
- (void *)0
- };
- GUI_CONST_STORAGE GUI_FONT GUI_ASCII_BOLD_7X8 =
- {
- GUI_FONTTYPE_PROP_USER,
- ASCII_BOLD_7X8_WIDTH * 2, //XSIZE
- ASCII_BOLD_7X8_HEIGHT, //YSIZE
- 1, //X方向放大倍数
- 1, //Y方向放大倍数
- (void GUI_CONST_STORAGE *)&GUI_ASCII_BOLD_7X8_PropASC
- };
- /*********************************************************************
- * GUI结构:6*12点阵ASCII标准字符
- **********************************************************************/
- GUI_CONST_STORAGE GUI_CHARINFO GUI_ASCII_6X12_CharInfo[1] =
- {
- { ASCII_6X12_WIDTH, ASCII_6X12_HEIGHT / 2, 1, (void *)0 },
- };
- GUI_CONST_STORAGE GUI_FONT_PROP GUI_ASCII_6X12_PropASC =
- {
- 0x0000,
- 0x007F,
- &GUI_ASCII_6X12_CharInfo[0],
- (void *)0
- };
- GUI_CONST_STORAGE GUI_FONT GUI_ASCII_6X12 =
- {
- GUI_FONTTYPE_PROP_USER,
- ASCII_6X12_WIDTH * 2, //XSIZE
- ASCII_6X12_HEIGHT, //YSIZE
- 1, //X方向放大倍数
- 1, //Y方向放大倍数
- (void GUI_CONST_STORAGE *)&GUI_ASCII_6X12_PropASC
- };
- /*********************************************************************
- * GUI结构:8*16点阵ASCII标准字符
- **********************************************************************/
- GUI_CONST_STORAGE GUI_CHARINFO GUI_ASCII_8X16_CharInfo[1] =
- {
- { ASCII_8X16_WIDTH, ASCII_8X16_HEIGHT / 2, 1, (void *)0 },
- };
- GUI_CONST_STORAGE GUI_FONT_PROP GUI_ASCII_8X16_PropASC =
- {
- 0x0000,
- 0x007F,
- &GUI_ASCII_8X16_CharInfo[0],
- (void *)0
- };
- GUI_CONST_STORAGE GUI_FONT GUI_ASCII_8X16 =
- {
- GUI_FONTTYPE_PROP_USER,
- ASCII_8X16_WIDTH * 2, //XSIZE
- ASCII_8X16_HEIGHT, //YSIZE
- 1, //X方向放大倍数
- 1, //Y方向放大倍数
- (void GUI_CONST_STORAGE *)&GUI_ASCII_8X16_PropASC
- };
- /*********************************************************************
- * GUI结构:8*16点阵ASCII粗体字符
- **********************************************************************/
- GUI_CONST_STORAGE GUI_CHARINFO GUI_ASCII_BOLD_8X16_CharInfo[1] =
- {
- { ASCII_BOLD_8X16_WIDTH, ASCII_BOLD_8X16_HEIGHT / 2, 1, (void *)0 },
- };
- GUI_CONST_STORAGE GUI_FONT_PROP GUI_ASCII_BOLD_8X16_PropASC =
- {
- 0x0000,
- 0x007F,
- &GUI_ASCII_BOLD_8X16_CharInfo[0],
- (void *)0
- };
- GUI_CONST_STORAGE GUI_FONT GUI_ASCII_BOLD_8X16 =
- {
- GUI_FONTTYPE_PROP_USER,
- ASCII_BOLD_8X16_WIDTH * 2, //XSIZE
- ASCII_BOLD_8X16_HEIGHT, //YSIZE
- 1, //X方向放大倍数
- 1, //Y方向放大倍数
- (void GUI_CONST_STORAGE *)&GUI_ASCII_BOLD_8X16_PropASC
- };
|