tft_font.h

来自「LCD实现的接口驱动程序」· C头文件 代码 · 共 71 行

H
71
字号
// SUNPLUS  S+core IDE generated include file.#ifndef TFT_DRIVER_TFT_FONT_H_14604_32391__INCLUDED_#define TFT_DRIVER_TFT_FONT_H_14604_32391__INCLUDED_typedef short FONT;typedef struct {	unsigned short CharWidth;	unsigned short CharHeight;	unsigned char *FontBuf;}STR_FONT;#define NO_FREE_FONT -1#define FONT_UNUSE_FLAG (unsigned char *)0#define FONT_USE_FLAG (unsigned char *)1//=============================================================//	字库初始化//=============================================================void TFT_FontInit(void);//=============================================================//	获取英文字体宽度//=============================================================unsigned short TFT_GetAsciiFontWidth(FONT Handle);//=============================================================//	获取中文字体宽度//=============================================================unsigned short TFT_GetChineseFontWidth(FONT Handle);//=============================================================//	获取英文字体高度//=============================================================unsigned short TFT_GetAsciiFontHeight(FONT Handle);//=============================================================//	获取中文字体高度//=============================================================unsigned short TFT_GetChineseFontHeight(FONT Handle);//=============================================================//	获取英文字体缓冲区地址//=============================================================unsigned char *TFT_GetAsciiFontBuf(FONT Handle);//=============================================================//	获取中文字体缓冲区地址//=============================================================unsigned char *TFT_GetChineseFontBuf(FONT Handle);//=============================================================//	获取英文字体信息//=============================================================int TFT_GetAsciiFontInfo(FONT Handle, STR_FONT *FontInfo);//=============================================================//	获取中文字体信息//=============================================================int TFT_GetChineseFontInfo(FONT Handle, STR_FONT *FontInfo);//=============================================================//	加载英文字体//=============================================================FONT TFT_LoadAsciiFont(STR_FONT *FontInfo);//=============================================================//	加载中文字体//=============================================================FONT TFT_LoadChineseFont(STR_FONT *FontInfo);//=============================================================//	卸载英文字体//=============================================================void TFT_UnLoadAsciiFont(FONT Handle);//=============================================================//	卸载中文字体//=============================================================void TFT_UnLoadChineseFont(FONT Handle);#endif //TFT_DRIVER_TFT_FONT_H_14604_32391__INCLUDED_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?