⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tft_font.h

📁 GPRS模组资料包含DEMO
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -