📄 fonts.h
字号:
#ifndef __FONTS_H__
#define __FONTS_H__
extern void __LIB__ FONTS ( void );
#define NULL 0
/* select desired fonts. (Simply comment out those not needed) */
#define EN_FIVE_DOT
#define EN_SIX_DOT
//#define EN_SEVEN_DOT
//#define EN_NINE_DOT
//#define EN_TEN_DOT
//#define EN_FIFTEEN_DOT
//#define EN_EIGHTEEN_DOT
/* define number labels for the font selections */
typedef enum
{
#ifdef EN_FIVE_DOT
FONT_FIVE_DOT,
#endif
#ifdef EN_SIX_DOT
FONT_SIX_DOT,
#endif
#ifdef EN_SEVEN_DOT
FONT_SEVEN_DOT,
#endif
#ifdef EN_NINE_DOT
FONT_NINE_DOT,
#endif
#ifdef EN_TEN_DOT
FONT_TEN_DOT,
#endif
#ifdef EN_FIFTEEN_DOT
FONT_FIFTEEN_DOT,
#endif
#ifdef EN_EIGHTEEN_DOT
FONT_EIGHTEEN_DOT,
#endif
FONT_COUNT
} FONT_BASE;
struct FONT_DEF
{
unsigned char store_width; /* glyph storage width in bytes */
unsigned char glyph_height; /* glyph height for storage */
unsigned char *glyph_table; /* font table start address in memory */
unsigned char fixed_width; /* fixed width of glyphs. If zero */
/* then use the width table. */
unsigned char *width_table; /* variable width table start adress */
unsigned char glyph_beg; /* start ascii offset in table */
unsigned char glyph_end; /* end ascii offset in table */
unsigned char glyph_def; /* code for undefined glyph code */
};
/* font definition tables for the three fonts */
extern struct FONT_DEF fonts[FONT_COUNT];
/* glyph bitmap and width tables for the fonts */
#ifdef EN_FIVE_DOT
extern unsigned char five_dot_glyph_table[];
extern unsigned char five_dot_width_table[];
#endif
#ifdef EN_SIX_DOT
extern unsigned char six_dot_glyph_table[];
extern unsigned char six_dot_width_table[];
#endif
#ifdef EN_SEVEN_DOT
extern unsigned char seven_dot_glyph_table[];
extern unsigned char seven_dot_width_table[];
#endif
#ifdef EN_NINE_DOT
extern unsigned char nine_dot_glyph_table[];
#endif
#ifdef EN_TEN_DOT
extern unsigned char ten_dot_glyph_table[];
#endif
#ifdef EN_FIFTEEN_DOT
extern unsigned char fifteen_dot_glyph_table[];
extern unsigned char fifteen_dot_width_table[];
#endif
#ifdef EN_EIGHTEEN_DOT
extern unsigned char eighteen_dot_glyph_table[];
extern unsigned char eighteen_dot_width_table[];
#endif
#endif /* __FONTS__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -