fonts.h
来自「I wrote this code early this year using 」· C头文件 代码 · 共 33 行
H
33 行
#ifndef _FONTS_H
#define _FONTS_H
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 */
};
/* define the range if characters in the font tables */
#define ASCII_BOT 0x20
#define ASCII_TOP 0x7E
/* font definition tables for the three fonts */
extern struct FONT_DEF fonts[];
/* glyph bitmap tables for the three fonts */
extern unsigned char normal_glyph_table[];
extern unsigned char bold_glyph_table[];
extern unsigned char bigbold_glyph_table[];
/* width tables for the two small fonts */
extern unsigned char normal_width_table[];
extern unsigned char bold_width_table[];
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?