forked from pantata/TFT9341SPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gothic48b.c
99 lines (88 loc) · 8.11 KB
/
Gothic48b.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
// 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.
// Gothic48b.c
// Point Size : 48
// Memory usage : 8873 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>
uint8_t Gothic48b[] PROGMEM =
{
0x00, 0x2C, 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,0x27,0x00,0x00,0x00,0x0D,
// ','
0x2C,0x20,0x09,0x0D,0x01,0x0D,
0x00,0x02,0x03,0xC1,0xF0,0xF0,0xF8,0x78,0x7C,0x3C,0x1E,0x1E,0x0F,0x01,0x00,
// '-'
0x2D,0x17,0x0C,0x06,0x04,0x14,
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
// '.'
0x2E,0x20,0x07,0x07,0x02,0x0D,
0x38,0xFB,0xFF,0xFF,0xEF,0x8E,0x00,
// '/'
0x2F,0x04,0x15,0x2A,0x01,0x16,
0x00,0x00,0xF0,0x00,0x07,0x80,0x00,0x7C,0x00,0x03,0xC0,0x00,0x1E,0x00,0x01,0xE0,0x00,0x0F,0x00,0x00,0xF8,0x00,0x07,0x80,0x00,0x3C,0x00,0x03,0xC0,0x00,0x1E,0x00,0x01,0xF0,0x00,0x0F,0x00,0x00,0x78,0x00,0x07,0x80,0x00,0x3C,0x00,0x01,0xE0,0x00,0x1E,0x00,0x00,0xF0,0x00,0x0F,0x80,0x00,0x78,0x00,0x03,0xC0,0x00,0x3C,0x00,0x01,0xE0,0x00,0x1F,0x00,0x00,0xF0,0x00,0x07,0x80,0x00,0x78,0x00,0x03,0xC0,0x00,0x3E,0x00,0x01,0xE0,0x00,0x0F,0x00,0x00,0xF8,0x00,0x07,0x80,0x00,0x3C,0x00,0x03,0xC0,0x00,0x1E,0x00,0x01,0xF0,0x00,0x0F,0x00,0x00,0x78,0x00,0x07,0x80,0x00,0x00,
// '0'
0x30,0x04,0x18,0x24,0x01,0x1B,
0x00,0xFE,0x00,0x03,0xFF,0xC0,0x07,0xFF,0xE0,0x0F,0xFF,0xF0,0x1F,0xFF,0xF8,0x3F,0xFF,0xFC,0x3F,0xC3,0xFC,0x7F,0x01,0xFE,0x7F,0x00,0xFE,0x7E,0x00,0x7E,0x7E,0x00,0x7E,0xFE,0x00,0x7F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFC,0x00,0x3F,0xFE,0x00,0x7F,0x7E,0x00,0x7E,0x7E,0x00,0x7E,0x7F,0x00,0xFE,0x7F,0x81,0xFE,0x3F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,0x00,0x1F,0xFE,0x00,0xFF,0xFC,0x07,0xFF,0xF8,0x3F,0xFF,0xF1,0xFF,0xFF,0xE7,0xF8,0x7F,0xBF,0x80,0x7F,0xFE,0x01,0xFF,0xF0,0x03,0xFF,0xC0,0x0F,0xFF,0x00,0x3F,0xFE,0x00,0xFF,0xF8,0x07,0xF7,0xF8,0x7F,0x9F,0xFF,0xFE,0x3F,0xFF,0xF0,0x7F,0xFF,0xC0,0xFF,0xFE,0x01,0xFF,0xF8,0x00,0xFF,0xC0,0x00,0x7F,0x00,0x01,0xF8,0x00,0x0F,0xE0,0x00,0x3F,0x00,0x01,0xFC,0x00,0x0F,0xE0,0x00,0x3F,0x80,0x01,0xFC,0x00,0x07,0xF0,0x00,0x3F,0x80,0x00,0xFE,0x00,0x07,0xF0,0x00,0x1F,0x80,0x00,0x1E,0x00,0x00,0x10,0x00,
// ':'
0x3A,0x0D,0x07,0x1A,0x02,0x0D,
0x38,0xFB,0xFF,0xFF,0xEF,0x8E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xC7,0xDF,0xFF,0xFF,0x7C,0x70,
// ';'
0x3B,0x0D,0x09,0x20,0x01,0x0D,
0x1C,0x1F,0x1F,0xCF,0xE7,0xF1,0xF0,0x70,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x78,0x3E,0x1E,0x1F,0x0F,0x0F,0x87,0x83,0xC3,0xC1,0xE0,0x20,
// Terminator
0xFF
};