summaryrefslogtreecommitdiff
path: root/fonts.h
blob: 93b63f03be4832ce921e2064be6c9a455ac8d714 (plain)
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
#define SYMBOL_WIDTH   5

static char const symbols[96 * SYMBOL_WIDTH] = {
  0x00,0x00,0x00,0x00,0x00,  // space
  0x00,0x00,0x2F,0x00,0x00,  // !
  0x00,0x07,0x00,0x07,0x00,  // "
  0x14,0x7C,0x17,0x7C,0x17,  // #
  0x00,0x16,0x77,0x0A,0x00,  // $
  0x26,0x15,0x3F,0x2A,0x19,  // %
  0x10,0x2C,0x2A,0x12,0x28,  // &
  0x00,0x00,0x03,0x00,0x00,  // '
  0x00,0x1C,0x63,0x00,0x00,  // (
  0x00,0x00,0x63,0x1C,0x00,  // )
  0x00,0x0A,0x07,0x0A,0x00,  // *
  0x08,0x08,0x3E,0x08,0x08,  // +
  0x00,0x40,0x30,0x00,0x00,  // ,
  0x00,0x08,0x08,0x08,0x00,  // -
  0x00,0x00,0x20,0x00,0x00,  // .
  0x40,0x30,0x0C,0x03,0x00,  // /
  0x00,0x1E,0x21,0x1E,0x00,  // 0
  0x00,0x22,0x3F,0x20,0x00,  // 1
  0x00,0x32,0x29,0x26,0x00,  // 2
  0x00,0x12,0x25,0x1E,0x00,  // 3
  0x0C,0x0A,0x3F,0x08,0x00,  // 4
  0x00,0x27,0x25,0x19,0x00,  // 5
  0x00,0x3E,0x29,0x19,0x00,  // 6
  0x00,0x03,0x39,0x07,0x00,  // 7
  0x00,0x1B,0x25,0x1B,0x00,  // 8
  0x00,0x26,0x29,0x1F,0x00,  // 9
  0x00,0x00,0x28,0x00,0x00,  // :
  0x00,0x40,0x28,0x00,0x00,  // ;
  0x00,0x0C,0x12,0x00,0x00,  // <
  0x00,0x14,0x14,0x14,0x00,  // =
  0x00,0x00,0x12,0x0C,0x00,  // >
  0x00,0x02,0x29,0x06,0x00,  // ?
  0x3C,0x4B,0x55,0x5E,0x10,  // @
  0x20,0x3E,0x0A,0x3C,0x20,  // A
  0x22,0x3E,0x2A,0x1C,0x00,  // B
  0x1C,0x22,0x22,0x14,0x00,  // C
  0x22,0x3E,0x22,0x1C,0x00,  // D
  0x22,0x3E,0x2A,0x36,0x00,  // E
  0x22,0x3E,0x0A,0x06,0x00,  // F
  0x00,0x1C,0x2A,0x3A,0x00,  // G
  0x22,0x3E,0x08,0x3E,0x22,  // H
  0x00,0x22,0x3E,0x22,0x00,  // I
  0x18,0x22,0x1E,0x02,0x00,  // J
  0x22,0x3E,0x08,0x14,0x22,  // K
  0x22,0x3E,0x20,0x30,0x00,  // L
  0x3E,0x0C,0x04,0x3E,0x00,  // M
  0x22,0x3E,0x04,0x08,0x3E,  // N
  0x00,0x1C,0x22,0x1C,0x00,  // O
  0x22,0x3E,0x0A,0x0C,0x00,  // P
  0x00,0x5C,0x62,0x5C,0x00,  // Q
  0x22,0x3E,0x0A,0x1C,0x20,  // R
  0x00,0x34,0x2A,0x1A,0x00,  // S
  0x06,0x22,0x3E,0x22,0x06,  // T
  0x02,0x3E,0x20,0x1E,0x02,  // U
  0x0E,0x30,0x08,0x06,0x00,  // V
  0x02,0x3E,0x18,0x32,0x0E,  // W
  0x36,0x1C,0x36,0x22,0x00,  // X
  0x06,0x38,0x28,0x06,0x00,  // Y
  0x00,0x32,0x2A,0x26,0x00,  // Z
  0x00,0x7F,0x41,0x00,0x00,  // [
  0x00,0x01,0x0E,0x30,0x40,  // backslash
  0x00,0x00,0x41,0x7F,0x00,  // ]
  0x04,0x02,0x02,0x04,0x00,  // ^
  0x40,0x40,0x40,0x40,0x40,  // _
  0x00,0x01,0x02,0x00,0x00,  // `
  0x00,0x14,0x2C,0x18,0x20,  // a
  0x21,0x3F,0x24,0x18,0x00,  // b
  0x00,0x18,0x24,0x14,0x00,  // c
  0x00,0x18,0x25,0x1F,0x20,  // d
  0x00,0x18,0x2C,0x2C,0x00,  // e
  0x00,0x24,0x3F,0x25,0x00,  // f
  0x00,0x58,0x64,0x78,0x04,  // g
  0x21,0x3F,0x04,0x38,0x20,  // h
  0x00,0x24,0x3D,0x20,0x00,  // i
  0x40,0x44,0x7D,0x00,0x00,  // j
  0x21,0x3F,0x18,0x34,0x20,  // k
  0x00,0x21,0x3F,0x20,0x00,  // l
  0x3C,0x38,0x04,0x38,0x20,  // m
  0x24,0x3C,0x04,0x38,0x20,  // n
  0x00,0x18,0x24,0x18,0x00,  // o
  0x44,0x7C,0x64,0x18,0x00,  // p
  0x00,0x18,0x64,0x78,0x44,  // q
  0x00,0x24,0x3C,0x24,0x04,  // r
  0x00,0x28,0x2C,0x14,0x00,  // s
  0x04,0x3F,0x24,0x14,0x00,  // t
  0x04,0x3C,0x20,0x1C,0x20,  // u
  0x04,0x1C,0x20,0x1C,0x00,  // v
  0x1C,0x30,0x1C,0x30,0x0C,  // w
  0x24,0x18,0x18,0x24,0x00,  // x
  0x44,0x5C,0x20,0x1C,0x00,  // y
  0x00,0x34,0x2C,0x24,0x00,  // z
  0x00,0x08,0x36,0x41,0x00,  // {
  0x00,0x00,0x7F,0x00,0x00,  // |
  0x00,0x41,0x36,0x08,0x00,  // }
  0x00,0x08,0x04,0x08,0x04,  // ~
// 0x7f .. 0xaf missing
  0x00,0x02,0x05,0x02,0x00   // °
};

int render(char *input, int input_len, char *output, int max_output_len, int skip_unprintables);