-
Notifications
You must be signed in to change notification settings - Fork 12
/
picopixel.go
107 lines (104 loc) · 11.5 KB
/
picopixel.go
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
// Picopixel by Sebastian Weber. A tiny font
// with all characters within a 6 pixel Height.
package tinyfont
var Picopixel = Font{
BBox: [4]int8{5, 6, 0, -4},
Glyphs: []Glyph{
/* */ Glyph{Rune: 32, Width: 0x0, Height: 0x0, XAdvance: 0x2, XOffset: 0, YOffset: 1, Bitmaps: []uint8{}},
/* ! */ Glyph{Rune: 33, Width: 0x1, Height: 0x5, XAdvance: 0x2, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xe8}},
/* " */ Glyph{Rune: 34, Width: 0x3, Height: 0x2, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xb4}},
/* # */ Glyph{Rune: 35, Width: 0x5, Height: 0x5, XAdvance: 0x6, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x57, 0xd5, 0xf5, 0x0}},
/* $ */ Glyph{Rune: 36, Width: 0x3, Height: 0x6, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x4e, 0x3e, 0x80}},
/* % */ Glyph{Rune: 37, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xa5, 0x4a}},
/* & */ Glyph{Rune: 38, Width: 0x4, Height: 0x5, XAdvance: 0x5, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x4a, 0x5a, 0x50}},
/* ' */ Glyph{Rune: 39, Width: 0x1, Height: 0x2, XAdvance: 0x2, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xc0}},
/* ( */ Glyph{Rune: 40, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x6a, 0x40}},
/* ) */ Glyph{Rune: 41, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x95, 0x80}},
/* * */ Glyph{Rune: 42, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0xaa, 0x80}},
/* + */ Glyph{Rune: 43, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x5d, 0x0}},
/* , */ Glyph{Rune: 44, Width: 0x2, Height: 0x2, XAdvance: 0x3, XOffset: 0, YOffset: 0, Bitmaps: []uint8{0x60}},
/* - */ Glyph{Rune: 45, Width: 0x3, Height: 0x1, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xe0}},
/* . */ Glyph{Rune: 46, Width: 0x1, Height: 0x1, XAdvance: 0x2, XOffset: 0, YOffset: 0, Bitmaps: []uint8{0x80}},
/* / */ Glyph{Rune: 47, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x25, 0x48}},
/* 0 */ Glyph{Rune: 48, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x56, 0xd4}},
/* 1 */ Glyph{Rune: 49, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x75, 0x40}},
/* 2 */ Glyph{Rune: 50, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xc5, 0x4e}},
/* 3 */ Glyph{Rune: 51, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xc5, 0x1c}},
/* 4 */ Glyph{Rune: 52, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x97, 0x92}},
/* 5 */ Glyph{Rune: 53, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xf3, 0x1c}},
/* 6 */ Glyph{Rune: 54, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x53, 0x54}},
/* 7 */ Glyph{Rune: 55, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xe5, 0x48}},
/* 8 */ Glyph{Rune: 56, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x55, 0x54}},
/* 9 */ Glyph{Rune: 57, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x55, 0x94}},
/* : */ Glyph{Rune: 58, Width: 0x1, Height: 0x3, XAdvance: 0x2, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0xa0}},
/* ; */ Glyph{Rune: 59, Width: 0x2, Height: 0x4, XAdvance: 0x3, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x46}},
/* < */ Glyph{Rune: 60, Width: 0x2, Height: 0x3, XAdvance: 0x3, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x64}},
/* = */ Glyph{Rune: 61, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0xe3, 0x80}},
/* > */ Glyph{Rune: 62, Width: 0x2, Height: 0x3, XAdvance: 0x3, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x98}},
/* ? */ Glyph{Rune: 63, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xc5, 0x4}},
/* @ */ Glyph{Rune: 64, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x56, 0xc6}},
/* A */ Glyph{Rune: 65, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x57, 0xda}},
/* B */ Glyph{Rune: 66, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xd7, 0x5c}},
/* C */ Glyph{Rune: 67, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x72, 0x46}},
/* D */ Glyph{Rune: 68, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xd6, 0xdc}},
/* E */ Glyph{Rune: 69, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xf3, 0xce}},
/* F */ Glyph{Rune: 70, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xf3, 0x48}},
/* G */ Glyph{Rune: 71, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x72, 0xd4}},
/* H */ Glyph{Rune: 72, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xb7, 0xda}},
/* I */ Glyph{Rune: 73, Width: 0x1, Height: 0x5, XAdvance: 0x2, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xf8}},
/* J */ Glyph{Rune: 74, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x24, 0xd4}},
/* K */ Glyph{Rune: 75, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xbb, 0x5a}},
/* L */ Glyph{Rune: 76, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x92, 0x4e}},
/* M */ Glyph{Rune: 77, Width: 0x5, Height: 0x5, XAdvance: 0x6, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x8e, 0xeb, 0x58, 0x80}},
/* N */ Glyph{Rune: 78, Width: 0x4, Height: 0x5, XAdvance: 0x5, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x9d, 0xb9, 0x90}},
/* O */ Glyph{Rune: 79, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x56, 0xd4}},
/* P */ Glyph{Rune: 80, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xd7, 0x48}},
/* Q */ Glyph{Rune: 81, Width: 0x3, Height: 0x6, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x56, 0xd4, 0x40}},
/* R */ Glyph{Rune: 82, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xd7, 0x5a}},
/* S */ Glyph{Rune: 83, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x71, 0x1c}},
/* T */ Glyph{Rune: 84, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xe9, 0x24}},
/* U */ Glyph{Rune: 85, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xb6, 0xd4}},
/* V */ Glyph{Rune: 86, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xb6, 0xa4}},
/* W */ Glyph{Rune: 87, Width: 0x5, Height: 0x5, XAdvance: 0x6, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x8c, 0x6b, 0x55, 0x0}},
/* X */ Glyph{Rune: 88, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xb5, 0x5a}},
/* Y */ Glyph{Rune: 89, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xb5, 0x24}},
/* Z */ Glyph{Rune: 90, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xe5, 0x4e}},
/* [ */ Glyph{Rune: 91, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xea, 0xc0}},
/* \ */ Glyph{Rune: 92, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x91, 0x12}},
/* ] */ Glyph{Rune: 93, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xd5, 0xc0}},
/* ^ */ Glyph{Rune: 94, Width: 0x3, Height: 0x2, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x54}},
/* _ */ Glyph{Rune: 95, Width: 0x4, Height: 0x1, XAdvance: 0x4, XOffset: 0, YOffset: 1, Bitmaps: []uint8{0xf0}},
/* ` */ Glyph{Rune: 96, Width: 0x2, Height: 0x2, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x90}},
/* a */ Glyph{Rune: 97, Width: 0x3, Height: 0x4, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0xc7, 0xf0}},
/* b */ Glyph{Rune: 98, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x93, 0x5e}},
/* c */ Glyph{Rune: 99, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0x71, 0x80}},
/* d */ Glyph{Rune: 100, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x25, 0xde}},
/* e */ Glyph{Rune: 101, Width: 0x3, Height: 0x4, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x5e, 0x30}},
/* f */ Glyph{Rune: 102, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x6e, 0x80}},
/* g */ Glyph{Rune: 103, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x77, 0x9c}},
/* h */ Glyph{Rune: 104, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x93, 0x5a}},
/* i */ Glyph{Rune: 105, Width: 0x1, Height: 0x5, XAdvance: 0x2, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xb8}},
/* j */ Glyph{Rune: 106, Width: 0x2, Height: 0x6, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x45, 0x60}},
/* k */ Glyph{Rune: 107, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x92, 0xea}},
/* l */ Glyph{Rune: 108, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xaa, 0x40}},
/* m */ Glyph{Rune: 109, Width: 0x5, Height: 0x3, XAdvance: 0x6, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xd5, 0x6a}},
/* n */ Glyph{Rune: 110, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xd6, 0x80}},
/* o */ Glyph{Rune: 111, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0x55, 0x0}},
/* p */ Glyph{Rune: 112, Width: 0x3, Height: 0x4, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xd7, 0x40}},
/* q */ Glyph{Rune: 113, Width: 0x3, Height: 0x4, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0x75, 0x90}},
/* r */ Glyph{Rune: 114, Width: 0x2, Height: 0x3, XAdvance: 0x3, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xe8}},
/* s */ Glyph{Rune: 115, Width: 0x3, Height: 0x4, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x71, 0xe0}},
/* t */ Glyph{Rune: 116, Width: 0x2, Height: 0x5, XAdvance: 0x3, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xba, 0x40}},
/* u */ Glyph{Rune: 117, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xb5, 0x80}},
/* v */ Glyph{Rune: 118, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xb5, 0x0}},
/* w */ Glyph{Rune: 119, Width: 0x5, Height: 0x3, XAdvance: 0x6, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0x8d, 0x54}},
/* x */ Glyph{Rune: 120, Width: 0x3, Height: 0x3, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xaa, 0x80}},
/* y */ Glyph{Rune: 121, Width: 0x3, Height: 0x4, XAdvance: 0x4, XOffset: 0, YOffset: -2, Bitmaps: []uint8{0xac, 0xe0}},
/* z */ Glyph{Rune: 122, Width: 0x3, Height: 0x4, XAdvance: 0x4, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0xe5, 0x70}},
/* { */ Glyph{Rune: 123, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0x6a, 0x26}},
/* | */ Glyph{Rune: 124, Width: 0x1, Height: 0x6, XAdvance: 0x2, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xfc}},
/* } */ Glyph{Rune: 125, Width: 0x3, Height: 0x5, XAdvance: 0x4, XOffset: 0, YOffset: -4, Bitmaps: []uint8{0xc8, 0xac}},
/* ~ */ Glyph{Rune: 126, Width: 0x4, Height: 0x2, XAdvance: 0x5, XOffset: 0, YOffset: -3, Bitmaps: []uint8{0x5a}},
},
YAdvance: 0x7,
}