#ifndef _FONT_H #define _FONT_H #include // 字体相关结构定义 typedef struct _lcd_font { const uint8_t *table; // 字模数组地址 uint16_t width; // 单个字符的字模宽度 uint16_t height; // 单个字符的字模长度 uint16_t sizes; // 单个字符的字模数据个数 uint16_t table_rows; // 该参数只有汉字字模用到,表示二维数组的行大小 } lcd_font; /*------------------------------------ 中文字体 ---------------------------------------------*/ extern lcd_font ch_font_12; // 1212字体 extern lcd_font ch_font_16; // 1616字体 extern lcd_font ch_font_20; // 2020字体 extern lcd_font ch_font_24; // 2424字体 extern lcd_font ch_font_32; // 3232字体 /*------------------------------------ ASCII字体 ---------------------------------------------*/ extern lcd_font ascii_font_32; // 3216 字体 extern lcd_font ascii_font_24; // 2412 字体 extern lcd_font ascii_font_20; // 2010 字体 extern lcd_font ascii_font_16; // 1608 字体 extern lcd_font ascii_font_12; // 1206 字体 #endif // _FONT_H