forked from freetronics/DMD
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathFont3x5.h
167 lines (157 loc) · 4.51 KB
/
Font3x5.h
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*
*
* Font3x5
*
* created with FontCreator
* written by F. Maximilian Thiele
*
* http://www.apetech.de/fontCreator
* me@apetech.de
*
* File Name : Font3x5.h
* Date : 17.02.2012
* Font size in bytes : 1472
* Font width : 3
* Font height : 5
* Font first char : 32
* Font last char : 128
* Font used chars : 96
*
* The font data are defined as
*
* struct _FONT_ {
* uint16_t font_Size_in_Bytes_over_all_included_Size_it_self;
* uint8_t font_Width_in_Pixel_for_fixed_drawing;
* uint8_t font_Height_in_Pixel_for_all_characters;
* unit8_t font_First_Char;
* uint8_t font_Char_Count;
*
* uint8_t font_Char_Widths[font_Last_Char - font_First_Char +1];
* // for each character the separate width in pixels,
* // characters < 128 have an implicit virtual right empty row
*
* uint8_t font_data[];
* // bit field of all characters
*/
#include <inttypes.h>
#include <avr/pgmspace.h>
#ifndef FONT3X5_H
#define FONT3X5_H
#define FONT3X5_WIDTH 3
#define FONT3X5_HEIGHT 5
static uint8_t Font3x5[] PROGMEM = {
0x05, 0xC0, // size
0x03, // width
0x05, // height
0x20, // first char
0x60, // char count
// char widths
0x03, 0x01, 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0x02, 0x02,
0x03, 0x03, 0x01, 0x03, 0x01, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0x01, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x05, 0x04, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x05, 0x03, 0x03, 0x03, 0x02,
0x03, 0x02, 0x03, 0x03, 0x02, 0x03, 0x03, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x01, 0x03, 0x03, 0x01, 0x05, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x05, 0x03, 0x03,
0x03, 0x03, 0x01, 0x03, 0x03, 0x03,
// font data
0x00, 0x00, 0x00, // 32
0xB8, // 33
0x18, 0x00, 0x18, // 34
0xF8, 0x70, 0xF8, // 35
0x10, 0xF8, 0x40, // 36
0x00, 0x00, 0x00, // 37
0x00, 0x00, 0x00, // 38
0x18, // 39
0x70, 0x88, // 40
0x88, 0x70, // 41
0x70, 0x70, 0x70, // 42
0x20, 0x70, 0x20, // 43
0xC0, // 44
0x20, 0x20, 0x20, // 45
0x80, // 46
0xC0, 0x20, 0x18, // 47
0xF8, 0x88, 0xF8, // 48
0x90, 0xF8, 0x80, // 49
0xE8, 0xA8, 0xB8, // 50
0xA8, 0xA8, 0xF8, // 51
0x38, 0x20, 0xF8, // 52
0xB8, 0xA8, 0xE8, // 53
0xF8, 0xA8, 0xE8, // 54
0x08, 0xE8, 0x18, // 55
0xF8, 0xA8, 0xF8, // 56
0xB8, 0xA8, 0xF8, // 57
0x50, // 58
0xD0, // 59
0x20, 0x50, 0x88, // 60
0x50, 0x50, 0x50, // 61
0x88, 0x50, 0x20, // 62
0x08, 0xA8, 0x18, // 63
0x70, 0xE8, 0x70, // 64
0xF0, 0x28, 0xF0, // 65
0xF8, 0xA8, 0x50, // 66
0xF8, 0x88, 0x88, // 67
0xF8, 0x88, 0x70, // 68
0xF8, 0xA8, 0xA8, // 69
0xF8, 0x28, 0x28, // 70
0xF8, 0x88, 0xC8, // 71
0xF8, 0x20, 0xF8, // 72
0x88, 0xF8, 0x88, // 73
0x40, 0x80, 0x78, // 74
0xF8, 0x20, 0xD8, // 75
0xF8, 0x80, 0x80, // 76
0xF8, 0x10, 0xE0, 0x10, 0xF8, // 77
0xF8, 0x30, 0x40, 0xF8, // 78
0xF8, 0x88, 0xF8, // 79
0xF8, 0x28, 0x38, // 80
0x78, 0x48, 0xF8, // 81
0xF8, 0x28, 0xD0, // 82
0xB8, 0xA8, 0xE8, // 83
0x08, 0xF8, 0x08, // 84
0xF8, 0x80, 0xF8, // 85
0x78, 0x80, 0x78, // 86
0x78, 0x80, 0x78, 0x80, 0x78, // 87
0xD8, 0x20, 0xD8, // 88
0x18, 0xE0, 0x18, // 89
0xC8, 0xA8, 0x98, // 90
0xF8, 0x88, // 91
0x18, 0x20, 0xC0, // 92
0x88, 0xF8, // 93
0x10, 0x08, 0x10, // 94
0x80, 0x80, 0x80, // 95
0x08, 0x10, // 96
0xE8, 0xA8, 0xF8, // 97
0xF8, 0xA0, 0xE0, // 98
0xE0, 0xA0, 0xA0, // 99
0xE0, 0xA0, 0xF8, // 100
0xF8, 0xA8, 0xB8, // 101
0xF8, 0x28, 0x08, // 102
0xB8, 0xA8, 0xF8, // 103
0xF8, 0x20, 0xE0, // 104
0xE8, // 105
0x40, 0x80, 0x68, // 106
0xF8, 0x40, 0xA0, // 107
0xF8, // 108
0xF0, 0x20, 0xC0, 0x20, 0xC0, // 109
0xE0, 0x20, 0xC0, // 110
0xE0, 0xA0, 0xE0, // 111
0xF8, 0x28, 0x30, // 112
0x38, 0x28, 0xF0, // 113
0xE0, 0x20, 0x20, // 114
0x90, 0xA8, 0x48, // 115
0x10, 0xF8, 0x10, // 116
0xE0, 0x80, 0xE0, // 117
0x60, 0x80, 0x60, // 118
0x60, 0x80, 0x60, 0x80, 0x60, // 119
0xA0, 0x40, 0xA0, // 120
0x30, 0xA0, 0xF0, // 121
0xC8, 0xA8, 0x98, // 122
0x20, 0xF8, 0x88, // 123
0xF8, // 124
0x88, 0xF8, 0x20, // 125
0x60, 0x20, 0x30, // 126
0x00, 0x00, 0x00 // 127
};
#endif