天嵌二次封装库使用手册  V2.1.2
font.h
浏览该文件的文档.
1 /*
2  * font.h -- `Soft' font definitions
3  *
4  * Created 1995 by Geert Uytterhoeven
5  *
6  * This file is subject to the terms and conditions of the GNU General Public
7  * License. See the file COPYING in the main directory of this archive
8  * for more details.
9  */
10 
11 #ifndef _VIDEO_FONT_H
12 #define _VIDEO_FONT_H
13 
29 #include <linux/types.h>
30 
35  int idx;
36  char *name;
37  int width, height;
38  unsigned char *data;
39  int pref;
40 };
41 
42 #define VGA8x8_IDX 0
43 #define VGA8x16_IDX 1
44 #define PEARL8x8_IDX 2
45 #define VGA6x11_IDX 3
46 #define SUN8x16_IDX 4
47 #define SUN12x22_IDX 5
48 #define ACORN8x8_IDX 6
49 
50 extern struct fbcon_font_desc font_vga_8x8,
52 
53 #define MAX_FONT_NAME 32
54 
55 #endif /* _VIDEO_FONT_H */
字体的描述结构体
Definition: font.h:34
int idx
字体的索引号
Definition: font.h:35
unsigned char * data
字模的起始指针
Definition: font.h:38
int pref
额外信息,平台用
Definition: font.h:39
char * name
字体的描述(字体名)
Definition: font.h:36
int width
Definition: font.h:37
struct fbcon_font_desc font_vga_8x8 font_vga_8x16
int height
字模的宽和高
Definition: font.h:37