font_sys.h
4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#include "../../Texture/letters_img.h"
static u8 font_default_ascii[] = "abcdefhiuvsnorm.klxz4321567890`!gjpqytw,EFGHKLNOPRSUVXZ@JM:WIYABCD'T\"+-=Q_/?()[]";
/* ¥¿¥¤¥ë¤Î¿ô¡£ */
#define FONT_DEFAULT_BMS (sizeof(font_default_ascii)/sizeof(char))
static Bitmap font_default_bmps[] = {
{ 8, 64, 0*8, 0*12, letters_img, 12,0 }, /* a */
{ 8, 64, 1*8, 0*12, letters_img, 12,0 },
{ 8, 64, 2*8, 0*12, letters_img, 12,0 },
{ 8, 64, 3*8, 0*12, letters_img, 12,0 },
{ 8, 64, 4*8, 0*12, letters_img, 12,0 },
{ 8, 64, 5*8, 0*12, letters_img, 12,0 }, /* f */
{ 8, 64, 6*8, 0*12, letters_img, 12,0 },
{ 7, 64, 7*8, 0*12, letters_img, 12,0 },
{ 8, 64, 0*8, 1*12, letters_img, 12,0 },
{ 8, 64, 1*8, 1*12, letters_img, 12,0 },
{ 8, 64, 2*8, 1*12, letters_img, 12,0 }, /* s */
{ 8, 64, 3*8, 1*12, letters_img, 12,0 },
{ 8, 64, 4*8, 1*12, letters_img, 12,0 },
{ 8, 64, 5*8, 1*12, letters_img, 12,0 }, /* r */
{ 9, 64, 6*8, 1*12, letters_img, 12,0 },
{ 6, 64, 7*8+1, 1*12, letters_img, 12,0 },
{ 8, 64, 0*8, 2*12, letters_img, 12,0 },
{ 8, 64, 1*8, 2*12, letters_img, 12,0 },
{ 8, 64, 2*8, 2*12, letters_img, 12,0 },
{ 8, 64, 3*8, 2*12, letters_img, 12,0 },
{ 8, 64, 4*8, 2*12, letters_img, 12,0 },
{ 8, 64, 5*8, 2*12, letters_img, 12,0 },
{ 8, 64, 6*8, 2*12, letters_img, 12,0 },
{ 8, 64, 7*8, 2*12, letters_img, 12,0 },
{ 8, 64, 0*8, 3*12, letters_img, 12,0 },
{ 8, 64, 1*8, 3*12, letters_img, 12,0 },
{ 8, 64, 2*8, 3*12, letters_img, 12,0 },
{ 8, 64, 3*8, 3*12, letters_img, 12,0 },
{ 8, 64, 4*8, 3*12, letters_img, 12,0 },
{ 8, 64, 5*8, 3*12, letters_img, 12,0 },
{ 7, 64, 6*8, 3*12, letters_img, 12,0 },
{ 7, 64, 7*8, 3*12, letters_img, 12,0 },
{ 8, 64, 0*8, 4*12, letters_img, 16,0 },
{ 8, 64, 1*8, 4*12, letters_img, 16,0 },
{ 8, 64, 2*8, 4*12, letters_img, 16,0 },
{ 8, 64, 3*8, 4*12, letters_img, 16,0 },
{ 8, 64, 4*8, 4*12, letters_img, 16,0 },
{ 8, 64, 5*8, 4*12, letters_img, 16,0 },
{ 9, 64, 6*8, 4*12, letters_img, 16,0 },
{ 6, 64, 7*8+1, 4*12, letters_img, 16,0 },
{ 8, 64, 0*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 1*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 2*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 3*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 4*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 5*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 6*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 7*8, 64+0*12, letters_img, 12,0 },
{ 8, 64, 0*8, 64+1*12, letters_img, 12,0 },
{ 8, 64, 1*8, 64+1*12, letters_img, 12,0 },
{ 8, 64, 2*8, 64+1*12, letters_img, 12,0 },
{ 8, 64, 3*8, 64+1*12, letters_img, 12,0 },
{ 8, 64, 4*8, 64+1*12, letters_img, 12,0 },
{ 8, 64, 5*8, 64+1*12, letters_img, 12,0 },
{ 8, 64, 6*8, 64+1*12, letters_img, 12,0 },
{ 8, 64, 7*8, 64+1*12, letters_img, 12,0 },
{ 7, 64, 0*8, 64+2*12, letters_img, 12,0 },
{ 9, 64, 1*8-1, 64+2*12, letters_img, 12,0 },
{ 6, 64, 2*8, 64+2*12, letters_img, 12,0 },
{ 9, 64, 3*8-1, 64+2*12, letters_img, 12,0 },
{ 7, 64, 4*8, 64+2*12, letters_img, 12,0 },
{ 9, 64, 5*8-1, 64+2*12, letters_img, 12,0 },
{ 8, 64, 6*8, 64+2*12, letters_img, 12,0 },
{ 8, 64, 7*8, 64+2*12, letters_img, 12,0 },
{ 8, 64, 0*8, 64+3*12, letters_img, 12,0 },
{ 8, 64, 1*8, 64+3*12, letters_img, 12,0 },
{ 7, 64, 2*8, 64+3*12, letters_img, 12,0 },
{ 9, 64, 3*8-1, 64+3*12, letters_img, 12,0 },
{ 7, 64, 4*8, 64+3*12, letters_img, 12,0 },
{ 9, 64, 5*8-1, 64+3*12, letters_img, 12,0 },
{ 8, 64, 6*8, 64+3*12, letters_img, 12,0 },
{ 8, 64, 7*8, 64+3*12, letters_img, 12,0 },
{ 8, 64, 0*8, 64+4*12+1, letters_img, 16,0 },
{ 8, 64, 1*8, 64+4*12+1, letters_img, 16,0 },
{ 8, 64, 2*8, 64+4*12+1, letters_img, 16,0 },
{ 8, 64, 3*8, 64+4*12+1, letters_img, 16,0 },
{ 8, 64, 4*8, 64+4*12+1, letters_img, 16,0 },
{ 8, 64, 5*8, 64+4*12+1, letters_img, 16,0 },
{ 8, 64, 6*8, 64+4*12+1, letters_img, 16,0 },
{ 8, 64, 7*8, 64+4*12+1, letters_img, 16,0 },
};
TFont font_default ={
font_default_ascii,
9,16, /* char_width,char_height */
font_default_bmps,
FONT_DEFAULT_BMS,
letters_img
};