tvfont.c
4.34 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
107
108
109
110
111
112
113
114
115
116
117
118
/*
* File defining the tvfont, including all the data
*/
#include <PR/mbi.h>
#include <PR/sp.h>
#include "font.h"
static char tvfont_string[];
static Bitmap tvfont_bms[];
unsigned char tvfont_img[];
/*
* This is the external symbol that defines the font to users
*/
Font tvfont = {8, 16, tvfont_string, tvfont_bms, tvfont_img};
/*
* This is the converted bitmap image, generated by rgb2c
*/
#include "tvfont_img.h"
/*
* The mapping string
*/
static char tvfont_string[] = "abcdefhiuvsnorm.klxz4321567890`!gjpqytw,EFGHKLNOPRSUVXZ@JM:WIYABCD'T\"+-=Q_/?()[]";
static Bitmap tvfont_bms[] = {
{ 8, 64, 0*8, 0*12, tvfont_img, 12,0 },
{ 8, 64, 1*8, 0*12, tvfont_img, 12,0 },
{ 8, 64, 2*8, 0*12, tvfont_img, 12,0 },
{ 8, 64, 3*8, 0*12, tvfont_img, 12,0 },
{ 8, 64, 4*8, 0*12, tvfont_img, 12,0 },
{ 8, 64, 5*8, 0*12, tvfont_img, 12,0 },
{ 8, 64, 6*8, 0*12, tvfont_img, 12,0 },
{ 7, 64, 7*8, 0*12, tvfont_img, 12,0 },
{ 8, 64, 0*8, 1*12, tvfont_img, 12,0 },
{ 8, 64, 1*8, 1*12, tvfont_img, 12,0 },
{ 8, 64, 2*8, 1*12, tvfont_img, 12,0 },
{ 8, 64, 3*8, 1*12, tvfont_img, 12,0 },
{ 8, 64, 4*8, 1*12, tvfont_img, 12,0 },
{ 8, 64, 5*8, 1*12, tvfont_img, 12,0 },
{ 9, 64, 6*8, 1*12, tvfont_img, 12,0 },
{ 6, 64, 7*8+1, 1*12, tvfont_img, 12,0 },
{ 8, 64, 0*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 1*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 2*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 3*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 4*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 5*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 6*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 7*8, 2*12, tvfont_img, 12,0 },
{ 8, 64, 0*8, 3*12, tvfont_img, 12,0 },
{ 8, 64, 1*8, 3*12, tvfont_img, 12,0 },
{ 8, 64, 2*8, 3*12, tvfont_img, 12,0 },
{ 8, 64, 3*8, 3*12, tvfont_img, 12,0 },
{ 8, 64, 4*8, 3*12, tvfont_img, 12,0 },
{ 8, 64, 5*8, 3*12, tvfont_img, 12,0 },
{ 7, 64, 6*8, 3*12, tvfont_img, 12,0 },
{ 7, 64, 7*8, 3*12, tvfont_img, 12,0 },
{ 8, 64, 0*8, 4*12, tvfont_img, 16,0 },
{ 8, 64, 1*8, 4*12, tvfont_img, 16,0 },
{ 8, 64, 2*8, 4*12, tvfont_img, 16,0 },
{ 8, 64, 3*8, 4*12, tvfont_img, 16,0 },
{ 8, 64, 4*8, 4*12, tvfont_img, 16,0 },
{ 8, 64, 5*8, 4*12, tvfont_img, 16,0 },
{ 9, 64, 6*8, 4*12, tvfont_img, 16,0 },
{ 6, 64, 7*8+1, 4*12, tvfont_img, 16,0 },
{ 8, 64, 0*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 1*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 2*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 3*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 4*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 5*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 6*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 7*8, 64+0*12, tvfont_img, 12,0 },
{ 8, 64, 0*8, 64+1*12, tvfont_img, 12,0 },
{ 8, 64, 1*8, 64+1*12, tvfont_img, 12,0 },
{ 8, 64, 2*8, 64+1*12, tvfont_img, 12,0 },
{ 8, 64, 3*8, 64+1*12, tvfont_img, 12,0 },
{ 8, 64, 4*8, 64+1*12, tvfont_img, 12,0 },
{ 8, 64, 5*8, 64+1*12, tvfont_img, 12,0 },
{ 8, 64, 6*8, 64+1*12, tvfont_img, 12,0 },
{ 8, 64, 7*8, 64+1*12, tvfont_img, 12,0 },
{ 7, 64, 0*8, 64+2*12, tvfont_img, 12,0 },
{ 9, 64, 1*8-1, 64+2*12, tvfont_img, 12,0 },
{ 6, 64, 2*8, 64+2*12, tvfont_img, 12,0 },
{ 9, 64, 3*8-1, 64+2*12, tvfont_img, 12,0 },
{ 7, 64, 4*8, 64+2*12, tvfont_img, 12,0 },
{ 9, 64, 5*8-1, 64+2*12, tvfont_img, 12,0 },
{ 8, 64, 6*8, 64+2*12, tvfont_img, 12,0 },
{ 8, 64, 7*8, 64+2*12, tvfont_img, 12,0 },
{ 8, 64, 0*8, 64+3*12, tvfont_img, 12,0 },
{ 8, 64, 1*8, 64+3*12, tvfont_img, 12,0 },
{ 7, 64, 2*8, 64+3*12, tvfont_img, 12,0 },
{ 9, 64, 3*8-1, 64+3*12, tvfont_img, 12,0 },
{ 7, 64, 4*8, 64+3*12, tvfont_img, 12,0 },
{ 9, 64, 5*8-1, 64+3*12, tvfont_img, 12,0 },
{ 8, 64, 6*8, 64+3*12, tvfont_img, 12,0 },
{ 8, 64, 7*8, 64+3*12, tvfont_img, 12,0 },
{ 8, 64, 0*8, 64+4*12+1, tvfont_img, 16,0 },
{ 8, 64, 1*8, 64+4*12+1, tvfont_img, 16,0 },
{ 8, 64, 2*8, 64+4*12+1, tvfont_img, 16,0 },
{ 8, 64, 3*8, 64+4*12+1, tvfont_img, 16,0 },
{ 8, 64, 4*8, 64+4*12+1, tvfont_img, 16,0 },
{ 8, 64, 5*8, 64+4*12+1, tvfont_img, 16,0 },
{ 8, 64, 6*8, 64+4*12+1, tvfont_img, 16,0 },
{ 8, 64, 7*8, 64+4*12+1, tvfont_img, 16,0 },
};