forked from pantata/TFT9341SPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gothic38.c
132 lines (121 loc) · 8.34 KB
/
Gothic38.c
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
// This comes with no warranty, implied or otherwise
// This data structure was designed to support Proportional fonts
// on Arduinos. It can however handle any ttf font that has been converted
// using the conversion program. These could be fixed width or proportional
// fonts. Individual characters do not have to be multiples of 8 bits wide.
// Any width is fine and does not need to be fixed.
// The data bits are packed to minimize data requirements, but the tradeoff
// is that a header is required per character.
// Gothic.c
// Point Size : 38
// Memory usage : 5428 bytes
// # characters : 95
// Header Format (to make Arduino UTFT Compatible):
// ------------------------------------------------
// Character Width (Used as a marker to indicate use this format. i.e.: = 0x00)
// Character Height
// First Character (Reserved. 0x00)
// Number Of Characters (Reserved. 0x00)
#include <avr/pgmspace.h>
const uint8_t Gothic38[] PROGMEM =
{
0x00, 0x23, 0x00, 0x00,
// Individual Character Format:
// ----------------------------
// Character Code
// Adjusted Y Offset
// Width
// Height
// xOffset
// xDelta (the distance to move the cursor. Effective width of the character.)
// Data[n]
// NOTE: You can remove any of these characters if they are not needed in
// your application. The first character number in each Glyph indicates
// the ASCII character code. Therefore, these do not have to be sequential.
// Just remove all the content for a particular character to save space.
// ' '
0x20,0x1E,0x00,0x00,0x00,0x0B,
// '!'
0x21,0x02,0x05,0x1C,0x03,0x0C,
0x73,0x9C,0xE7,0x39,0xCE,0x73,0x9C,0xE7,0x39,0xCE,0x73,0x9C,0xE0,0x00,0x0E,0xFF,0xFE,0xE0,
// '"'
0x22,0x02,0x0A,0x08,0x01,0x0C,
0xE1,0xF8,0x7E,0x1F,0x87,0xE1,0xF8,0x7E,0x1F,0x87,
// '#'
0x23,0x02,0x14,0x1C,0x03,0x1B,
0x01,0xC3,0x80,0x1C,0x38,0x01,0xC3,0x80,0x3C,0x78,0x03,0x87,0x00,0x38,0x70,0x03,0x87,0x00,0x38,0x70,0x03,0x87,0x07,0xFF,0xFF,0x7F,0xFF,0xF0,0x70,0xE0,0x07,0x0E,0x00,0x70,0xE0,0x07,0x0E,0x00,0x70,0xE0,0x07,0x0E,0x0F,0xFF,0xFE,0xFF,0xFF,0xE0,0xE1,0xC0,0x0E,0x1C,0x00,0xE1,0xC0,0x0E,0x1C,0x00,0xE1,0xC0,0x1E,0x3C,0x01,0xC3,0x80,0x1C,0x38,0x01,0xC3,0x80,
// '$'
0x24,0x01,0x12,0x23,0x01,0x15,
0x00,0xE0,0x00,0x38,0x00,0x3F,0x00,0x3F,0xF0,0x1E,0xEF,0x07,0x39,0xC3,0x8E,0x20,0xE3,0x80,0x38,0xE0,0x0E,0x38,0x03,0xCE,0x00,0x7B,0x80,0x0F,0xE0,0x01,0xF8,0x00,0x3F,0x80,0x03,0xF0,0x00,0xFF,0x00,0x3B,0xE0,0x0E,0x38,0x03,0x8F,0x00,0xE1,0xC0,0x38,0x70,0x0E,0x1D,0x03,0x87,0xE0,0xE3,0xBC,0x38,0xE7,0xCE,0xF0,0x7F,0xF8,0x07,0xF8,0x00,0x38,0x00,0x0E,0x00,0x03,0x80,0x00,0xE0,0x00,0x38,0x00,0x0E,0x00,
// '%'
0x25,0x03,0x1B,0x1C,0x01,0x1D,
0x0F,0x80,0x1E,0x07,0xFF,0xFF,0x81,0xE3,0xFE,0xE0,0x38,0x38,0x1C,0x0E,0x03,0x87,0x01,0xC0,0x71,0xC0,0x38,0x0E,0x38,0x07,0x01,0xCE,0x00,0x70,0x71,0xC0,0x0F,0x1E,0x70,0x00,0xFF,0x9C,0x00,0x07,0xC3,0x80,0x00,0x00,0xE0,0x00,0x00,0x38,0x00,0x00,0x07,0x00,0x00,0x01,0xC1,0xF0,0x00,0x70,0xFF,0x80,0x0E,0x3C,0x78,0x03,0x87,0x07,0x00,0xE1,0xC0,0x70,0x1C,0x38,0x0E,0x07,0x07,0x01,0xC0,0xE0,0xE0,0x38,0x38,0x0E,0x0E,0x0E,0x01,0xE3,0xC1,0xC0,0x1F,0xF0,0x70,0x00,0xF8,0x1C,0x00,0x00,0x00,
// '&'
0x26,0x03,0x19,0x1B,0x03,0x1D,
0x01,0xF0,0x00,0x03,0xFE,0x00,0x03,0xC7,0x80,0x03,0x80,0xE0,0x01,0xC0,0x70,0x00,0xE0,0x38,0x00,0x70,0x3C,0x00,0x1C,0x1C,0x00,0x0F,0x1E,0x00,0x03,0x9E,0x00,0x00,0xFE,0x00,0x00,0x3E,0x00,0x00,0x3E,0x00,0x00,0x3F,0x00,0x00,0x3D,0xC0,0x00,0x3C,0x70,0x00,0x3C,0x1C,0x00,0x3C,0x07,0x06,0x1C,0x01,0xC7,0x1C,0x00,0x7F,0x8E,0x00,0x1F,0x07,0x00,0x0F,0x83,0x80,0x0F,0xC0,0xE0,0x1F,0x70,0x78,0x3E,0x1C,0x1F,0xFC,0x07,0x03,0xF8,0x01,0xC0,
// '''
0x27,0x02,0x03,0x08,0x02,0x08,
0xFF,0xFF,0xFF,
// '('
0x28,0x02,0x07,0x23,0x05,0x0E,
0x0E,0x38,0x70,0xE3,0x87,0x0E,0x38,0x70,0xE1,0xC3,0x8E,0x1C,0x38,0x70,0xE1,0xC3,0x87,0x0E,0x1C,0x38,0x70,0xE0,0xE1,0xC3,0x87,0x0E,0x1E,0x1C,0x38,0x70,0x70,
// ')'
0x29,0x02,0x07,0x23,0x02,0x0E,
0x70,0x70,0xE1,0xC3,0xC3,0x87,0x0E,0x1C,0x38,0x38,0x70,0xE1,0xC3,0x87,0x0E,0x1C,0x38,0x70,0xE1,0xC3,0x8E,0x1C,0x38,0x70,0xE3,0x87,0x0E,0x38,0x70,0xE3,0x80,
// '*'
0x2A,0x02,0x0D,0x0E,0x01,0x10,
0x07,0x00,0x38,0x01,0xC0,0xCE,0x6F,0x27,0x9F,0xF0,0x3E,0x01,0xF0,0x3F,0xE7,0x93,0xD9,0xCC,0x0E,0x00,0x70,0x03,0x80,
// '+'
0x2B,0x07,0x13,0x13,0x02,0x17,
0x00,0xE0,0x00,0x1C,0x00,0x03,0x80,0x00,0x70,0x00,0x0E,0x00,0x01,0xC0,0x00,0x38,0x00,0x07,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x80,0x70,0x00,0x0E,0x00,0x01,0xC0,0x00,0x38,0x00,0x07,0x00,0x00,0xE0,0x00,0x1C,0x00,0x03,0x80,0x00,
// ','
0x2C,0x19,0x06,0x08,0x02,0x0A,
0x10,0x73,0x8E,0x71,0x8E,0x10,
// '-'
0x2D,0x13,0x0B,0x02,0x01,0x0D,
0xFF,0xFF,0xFC,
// '.'
0x2E,0x19,0x05,0x05,0x03,0x0B,
0x77,0xFF,0xF7,0x00,
// '/'
0x2F,0x02,0x0E,0x20,0x02,0x11,
0x00,0x1C,0x00,0xE0,0x03,0x80,0x0E,0x00,0x70,0x01,0xC0,0x07,0x00,0x38,0x00,0xE0,0x03,0x80,0x1C,0x00,0x70,0x01,0xC0,0x0E,0x00,0x38,0x00,0xE0,0x07,0x00,0x1C,0x00,0x70,0x03,0x80,0x0E,0x00,0x38,0x01,0xC0,0x07,0x00,0x1C,0x00,0xE0,0x03,0x80,0x0E,0x00,0x70,0x01,0xC0,0x07,0x00,0x38,0x00,
// '0'
0x30,0x03,0x12,0x1B,0x01,0x15,
0x03,0xF0,0x03,0xFF,0x01,0xE1,0xE0,0xF0,0x3C,0x38,0x07,0x1C,0x00,0xE7,0x00,0x39,0xC0,0x0E,0xE0,0x01,0xF8,0x00,0x7E,0x00,0x1F,0x80,0x07,0xE0,0x01,0xF8,0x00,0x7E,0x00,0x1F,0x80,0x07,0xE0,0x01,0xF8,0x00,0x7E,0x00,0x1D,0xC0,0x0E,0x70,0x03,0x9C,0x00,0xE3,0x80,0x70,0xF0,0x3C,0x1E,0x1E,0x03,0xFF,0x00,0x3F,0x00,
// '1'
0x31,0x03,0x07,0x1B,0x05,0x15,
0x7F,0xFC,0x38,0x70,0xE1,0xC3,0x87,0x0E,0x1C,0x38,0x70,0xE1,0xC3,0x87,0x0E,0x1C,0x38,0x70,0xE1,0xC3,0x87,0x0E,0x1C,0x38,
// '2'
0x32,0x03,0x12,0x1B,0x01,0x15,
0x01,0xF8,0x01,0xFF,0x81,0xE0,0xF0,0x70,0x1E,0x38,0x03,0x9E,0x00,0x77,0x00,0x1D,0xC0,0x07,0x00,0x01,0xC0,0x00,0x70,0x00,0x3C,0x00,0x0E,0x00,0x07,0x00,0x03,0xC0,0x00,0xE0,0x00,0x70,0x00,0x38,0x00,0x1C,0x00,0x0E,0x00,0x07,0x00,0x03,0x80,0x01,0xC0,0x00,0xE0,0x00,0x70,0x00,0x38,0x00,0x1F,0xFF,0xFF,0xFF,0xFC,
// '3'
0x33,0x03,0x12,0x1B,0x01,0x15,
0x03,0xF0,0x03,0xFF,0x01,0xE1,0xE0,0xF0,0x1C,0x38,0x03,0x9C,0x00,0xE0,0x00,0x38,0x00,0x0E,0x00,0x07,0x80,0x01,0xC0,0x01,0xE0,0x03,0xF0,0x00,0xFE,0x00,0x07,0xC0,0x00,0x78,0x00,0x0E,0x00,0x03,0xC0,0x00,0x70,0x00,0x1C,0x00,0x07,0xE0,0x01,0xFC,0x00,0xE7,0x00,0x39,0xE0,0x1C,0x3C,0x1E,0x07,0xFF,0x00,0x3F,0x00,
// '4'
0x34,0x03,0x12,0x1B,0x01,0x15,
0x00,0x02,0x00,0x01,0x80,0x00,0x60,0x00,0x38,0x00,0x1E,0x00,0x07,0x80,0x03,0xE0,0x01,0xF8,0x00,0x7E,0x00,0x3B,0x80,0x1C,0xE0,0x07,0x38,0x03,0x8E,0x01,0xC3,0x80,0xE0,0xE0,0x38,0x38,0x1C,0x0E,0x0E,0x03,0x83,0x80,0xE1,0xFF,0xFF,0xFF,0xFF,0xC0,0x03,0x80,0x00,0xE0,0x00,0x38,0x00,0x0E,0x00,0x03,0x80,0x00,0xE0,
// '5'
0x35,0x03,0x12,0x1B,0x01,0x15,
0x03,0xFF,0x80,0xFF,0xE0,0x70,0x00,0x1C,0x00,0x07,0x00,0x01,0xC0,0x00,0xE0,0x00,0x38,0x00,0x0E,0x00,0x03,0xFE,0x01,0xFF,0xE0,0x60,0x7C,0x00,0x07,0x00,0x00,0xE0,0x00,0x38,0x00,0x07,0x00,0x01,0xC0,0x00,0x70,0x00,0x1C,0x00,0x07,0xE0,0x03,0xF8,0x00,0xE7,0x00,0x79,0xE0,0x3C,0x3C,0x1E,0x07,0xFF,0x00,0x7F,0x00,
// '6'
0x36,0x03,0x11,0x1B,0x02,0x15,
0x00,0x08,0x00,0x0E,0x00,0x0E,0x00,0x0E,0x00,0x07,0x00,0x07,0x00,0x07,0x00,0x07,0x00,0x07,0x80,0x03,0x80,0x03,0x80,0x03,0x80,0x03,0xFF,0x01,0xFF,0xE1,0xF0,0xF8,0xE0,0x1E,0xF0,0x07,0x70,0x01,0xF8,0x00,0xFC,0x00,0x7E,0x00,0x3F,0x00,0x1D,0xC0,0x1C,0xF0,0x1E,0x3C,0x1E,0x07,0xFC,0x01,0xF8,0x00,
// '7'
0x37,0x03,0x12,0x1B,0x02,0x15,
0x7F,0xFF,0xDF,0xFF,0xE0,0x00,0x38,0x00,0x1C,0x00,0x0E,0x00,0x03,0x80,0x01,0xC0,0x00,0x70,0x00,0x38,0x00,0x0E,0x00,0x07,0x00,0x01,0xC0,0x00,0xE0,0x00,0x70,0x00,0x1C,0x00,0x0E,0x00,0x03,0x80,0x01,0xC0,0x00,0x70,0x00,0x38,0x00,0x0E,0x00,0x07,0x00,0x03,0x80,0x00,0xE0,0x00,0x70,0x00,0x1C,0x00,0x06,0x00,0x00,
// '8'
0x38,0x03,0x12,0x1B,0x01,0x15,
0x03,0xF0,0x03,0xFF,0x01,0xE1,0xE0,0xE0,0x1C,0x38,0x07,0x1C,0x00,0xE7,0x00,0x39,0xC0,0x0E,0x70,0x03,0x8E,0x01,0xC3,0xC0,0xF0,0x78,0x78,0x0F,0xFC,0x03,0xFF,0x03,0xE0,0xF1,0xE0,0x1E,0x70,0x03,0xBC,0x00,0x7E,0x00,0x1F,0x80,0x07,0xE0,0x01,0xF8,0x00,0x77,0x00,0x39,0xE0,0x1E,0x3C,0x0F,0x07,0xFF,0x80,0x7F,0x00,
// '9'
0x39,0x03,0x11,0x1B,0x02,0x15,
0x03,0xF0,0x07,0xFC,0x0F,0x07,0x8F,0x01,0xE7,0x00,0x77,0x00,0x1F,0x80,0x0F,0xC0,0x07,0xE0,0x03,0xF0,0x01,0xDC,0x01,0xEF,0x00,0xE3,0xE0,0xF0,0xFF,0xF0,0x1F,0xF8,0x00,0x38,0x00,0x38,0x00,0x3C,0x00,0x1C,0x00,0x1C,0x00,0x1C,0x00,0x0E,0x00,0x0E,0x00,0x0E,0x00,0x07,0x00,0x07,0x00,0x01,0x00,0x00,
// ':'
0x3A,0x0A,0x05,0x14,0x03,0x0B,
0x77,0xFF,0xF7,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0xFF,0xFE,0xE0,
// ';'
0x3B,0x0A,0x06,0x17,0x02,0x0A,
0x39,0xF7,0xDF,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x1C,0xE3,0x9C,0x63,0x84,0x00,
// Terminator
0xFF
};