cheerlights-pixel-font 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ __pycache__/
2
+ .venv/
3
+ .pytest_cache/
4
+ *.exe
5
+ build/
6
+ *.egg-info/
@@ -0,0 +1,93 @@
1
+ Copyright 2026 The CheerLights Pixel Font Authors (https://github.com/cheerlights/cheerlights-pixel-font)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,143 @@
1
+ Metadata-Version: 2.4
2
+ Name: cheerlights-pixel-font
3
+ Version: 1.0.0
4
+ Summary: CheerLights Pixel: a 5 by 7 pixel font for LED matrices, small screens, and terminals, with accents and symbols.
5
+ Project-URL: Homepage, https://cheerlights.com
6
+ Project-URL: Source, https://github.com/cheerlights/cheerlights-pixel-font
7
+ Author: CheerLights
8
+ License-Expression: OFL-1.1
9
+ License-File: LICENSE
10
+ Keywords: bitmap font,cheerlights,font,led matrix,pixel font,terminal
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Terminals
13
+ Classifier: Topic :: Text Processing :: Fonts
14
+ Requires-Python: >=3.9
15
+ Description-Content-Type: text/markdown
16
+
17
+ # CheerLights Pixel Font
18
+
19
+ ![A string of lights in the CheerLights colors above and below "CheerLights Pixel Font" in LED dots](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/banner.png)
20
+
21
+ A 5 by 7 pixel font for LED matrices, small screens, and terminals, with accented letters and symbols such as a heart, a pumpkin, and a string of lights.
22
+ It comes as a C header for Arduino and ESP32, a MicroPython module, a BDF font for CircuitPython, a Python package, and TrueType and web fonts, all built from one set of hand-drawn glyphs.
23
+
24
+ ![Text scrolling across a strip of LEDs: CheerLights, a heart, Zoë's tree is red, a tree, ¡Feliz año!, a pumpkin](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/scroll.gif)
25
+
26
+ ## Quick start
27
+
28
+ In Python, draw text in a terminal:
29
+
30
+ ```bash
31
+ pip install git+https://github.com/cheerlights/cheerlights-pixel-font
32
+ ```
33
+
34
+ ```python
35
+ import cheerlights_pixel as font
36
+
37
+ print(font.blocks("CheerLights ♥"))
38
+ ```
39
+
40
+ ```text
41
+ ▄▀▀▀▄ █ █ ▀ █ █ ▄██▄██▄
42
+ █ █▀▀▀▄ ▄▀▀▀▄ ▄▀▀▀▄ █▄▀▀ █ █ ▄▀▀▀█ █▀▀▀▄ ▀█▀▀ ▄▀▀▀▀ ███████
43
+ █ ▄ █ █ █▀▀▀▀ █▀▀▀▀ █ █ █ ▀▄▄▄█ █ █ █ ▀▀▀▄ ▀███▀
44
+ ▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀ ▀▀▀▀ ▀ ▄▄▄▀ ▀ ▀ ▀▀ ▀▀▀▀ ▀
45
+ ```
46
+
47
+ `font.columns(text)` gives the pixels themselves, one number per column with bit 0 the top row, for drawing on any display.
48
+ `font.dots(text)` draws one character per pixel, and `font.colored(art, (255, 40, 30))` adds a 24-bit terminal color.
49
+
50
+ ## Examples
51
+
52
+ On an Arduino or ESP32, copy [`dist/c/cheerlights_pixel.h`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/c/cheerlights_pixel.h) next to your sketch and light the pixels of each column:
53
+
54
+ ```cpp
55
+ // An excerpt: setPixel() and left come from your sketch.
56
+ #include "cheerlights_pixel.h"
57
+
58
+ for (const char* p = "Zo\xc3\xab \xe2\x99\xa5"; *p;) { // "Zoë ♥" as UTF-8
59
+ cl_pixel_glyph g;
60
+ if (!cl_pixel_find(cl_pixel_next(&p), &g)) continue;
61
+ for (uint8_t x = 0; x < g.width; x++) {
62
+ uint8_t column = cl_pixel_column(&g, x);
63
+ for (int y = 0; y < CL_PIXEL_ROWS; y++)
64
+ if (column >> y & 1) setPixel(left + x, y); // your display's call
65
+ }
66
+ left += g.width + 1;
67
+ }
68
+ ```
69
+
70
+ With PlatformIO, add `lib_deps = https://github.com/cheerlights/cheerlights-pixel-font.git#v1.0.0` instead of copying the header.
71
+ On AVR boards such as the Uno the glyph data stays in flash, so the whole font costs no RAM.
72
+ [`examples/arduino/ScrollText`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/arduino/ScrollText/ScrollText.ino) scrolls a message across an 8 by 32 NeoPixel panel.
73
+
74
+ In MicroPython, copy [`dist/micropython/cheerlights_pixel.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/micropython/cheerlights_pixel.py) to the board:
75
+
76
+ ```python
77
+ # An excerpt: grid is your neopixel.NeoPixel object.
78
+ import cheerlights_pixel as font
79
+
80
+ for x, column in enumerate(font.columns("CheerLights ♥")):
81
+ for y in range(8):
82
+ grid[y * 8 + x] = (40, 4, 3) if column >> y & 1 else (0, 0, 0)
83
+ ```
84
+
85
+ [`examples/micropython/scroll_matrix.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/micropython/scroll_matrix.py) is the full scroller for an 8 by 8 grid.
86
+
87
+ In CircuitPython, copy [`dist/cheerlights-pixel.bdf`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/cheerlights-pixel.bdf) to the board and load it with `adafruit_bitmap_font`, as in [`examples/circuitpython/code.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/circuitpython/code.py).
88
+
89
+ On a web page, use the WOFF2 font at a multiple of 8 pixels so each font pixel fills whole screen pixels:
90
+
91
+ ```css
92
+ @font-face { font-family: "CheerLights Pixel"; src: url("CheerLightsPixel-Regular.woff2") format("woff2"); }
93
+ .sign { font: 32px "CheerLights Pixel", monospace; -webkit-font-smoothing: none; }
94
+ ```
95
+
96
+ `CheerLightsPixelLED-Regular` draws each pixel as a round LED instead ([`examples/web`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/web/index.html)).
97
+
98
+ In a terminal, show the live CheerLights color's name in that color:
99
+
100
+ ```bash
101
+ uv run examples/terminal/cheerlights_color.py
102
+ ```
103
+
104
+ ## What is in it
105
+
106
+ ![Every symbol in the font, and a string of lights in four colors](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/symbols.png)
107
+
108
+ - 365 glyphs: printable ASCII, Latin-1, Latin Extended-A, and Romanian's ș and ț, so names like Zoë, Müller, Łódź, and Ștefan scroll as they are written.
109
+ - Symbols for lights and seasons: lightbulb, Christmas light, LED, string of lights, globe, heart, star, snowflake, tree, bell, ornament, gift, snowman, pumpkin, ghost, bat, and skull, with the rest listed in [the glyph list](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/docs/glyphs.md).
110
+ - Emoji typed on a phone draw as the symbol they mean: ❤️, 💚, and 💜 as the heart, ⭐ as the star, 🌍 as the globe.
111
+ - A string of lights that joins: several in a row make one unbroken string.
112
+ - Letters take only the columns they need, from 1 for `i` to 5 for `m`, with one dark column between them, so scrolling text reads quickly.
113
+ - Rounded corners, a dotted zero, and descenders on g, j, p, q, and y.
114
+ - Two TrueType styles: square pixels and round LEDs.
115
+
116
+ ![The CheerLights colors as bulbs on a string, with their names below in each color](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/lights.png)
117
+
118
+ ## Files
119
+
120
+ - [`dist/c/cheerlights_pixel.h`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/c/cheerlights_pixel.h): C and C++, one header, with lookup and a UTF-8 reader.
121
+ - [`dist/micropython/cheerlights_pixel.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/micropython/cheerlights_pixel.py): one file for MicroPython and CircuitPython.
122
+ - [`dist/cheerlights-pixel.bdf`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/cheerlights-pixel.bdf): BDF bitmap font, for CircuitPython's `bitmap_font` and font tools.
123
+ - [`dist/cheerlights-pixel.json`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/cheerlights-pixel.json): every glyph as columns, for any language.
124
+ - [`dist/fonts/`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/fonts/): TrueType and WOFF2, in the pixel and LED styles.
125
+ - [`python/cheerlights_pixel`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/python/cheerlights_pixel/__init__.py): the Python package.
126
+
127
+ ## Limits
128
+
129
+ - Latin scripts only: no Greek, Cyrillic, or CJK characters.
130
+ - Capitals with a mark above, such as É and Å, are drawn 5 rows tall so the mark fits in the 8-row cell.
131
+ - The Christmas light, LED, string of lights, and ornament have no Unicode characters, so they sit in the private use area (U+E000 to U+E003) and show only in this font.
132
+ - The TrueType and web fonts draw exactly at multiples of 8 pixels, but a renderer that auto-hints, such as FreeType 2.14's light hinting on many Linux desktops, can lift an accent a pixel at 8 and 16 pixels; the C, MicroPython, BDF, and JSON files always draw exactly.
133
+ - The Arduino example compiles for the Uno and the ESP32-S3; the MicroPython and CircuitPython examples have not been run on a board yet, though the BDF loads in CircuitPython's `bitmap_font` on a computer.
134
+
135
+ ## Documentation
136
+
137
+ - [Glyphs](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/docs/glyphs.md): what the font covers and every symbol with its code point.
138
+ - [Changing the font](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/docs/changing-the-font.md): the glyph sources, the accent marks, the build, and the tests.
139
+
140
+ ## License
141
+
142
+ [SIL Open Font License 1.1](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/LICENSE): use the font in firmware, apps, documents, and pages, change it, and share it; it cannot be sold by itself.
143
+ CheerLights Pixel Font is part of [CheerLights](https://cheerlights.com), the lights around the world that share one color, set by anyone.
@@ -0,0 +1,127 @@
1
+ # CheerLights Pixel Font
2
+
3
+ ![A string of lights in the CheerLights colors above and below "CheerLights Pixel Font" in LED dots](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/banner.png)
4
+
5
+ A 5 by 7 pixel font for LED matrices, small screens, and terminals, with accented letters and symbols such as a heart, a pumpkin, and a string of lights.
6
+ It comes as a C header for Arduino and ESP32, a MicroPython module, a BDF font for CircuitPython, a Python package, and TrueType and web fonts, all built from one set of hand-drawn glyphs.
7
+
8
+ ![Text scrolling across a strip of LEDs: CheerLights, a heart, Zoë's tree is red, a tree, ¡Feliz año!, a pumpkin](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/scroll.gif)
9
+
10
+ ## Quick start
11
+
12
+ In Python, draw text in a terminal:
13
+
14
+ ```bash
15
+ pip install git+https://github.com/cheerlights/cheerlights-pixel-font
16
+ ```
17
+
18
+ ```python
19
+ import cheerlights_pixel as font
20
+
21
+ print(font.blocks("CheerLights ♥"))
22
+ ```
23
+
24
+ ```text
25
+ ▄▀▀▀▄ █ █ ▀ █ █ ▄██▄██▄
26
+ █ █▀▀▀▄ ▄▀▀▀▄ ▄▀▀▀▄ █▄▀▀ █ █ ▄▀▀▀█ █▀▀▀▄ ▀█▀▀ ▄▀▀▀▀ ███████
27
+ █ ▄ █ █ █▀▀▀▀ █▀▀▀▀ █ █ █ ▀▄▄▄█ █ █ █ ▀▀▀▄ ▀███▀
28
+ ▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀ ▀▀▀▀ ▀ ▄▄▄▀ ▀ ▀ ▀▀ ▀▀▀▀ ▀
29
+ ```
30
+
31
+ `font.columns(text)` gives the pixels themselves, one number per column with bit 0 the top row, for drawing on any display.
32
+ `font.dots(text)` draws one character per pixel, and `font.colored(art, (255, 40, 30))` adds a 24-bit terminal color.
33
+
34
+ ## Examples
35
+
36
+ On an Arduino or ESP32, copy [`dist/c/cheerlights_pixel.h`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/c/cheerlights_pixel.h) next to your sketch and light the pixels of each column:
37
+
38
+ ```cpp
39
+ // An excerpt: setPixel() and left come from your sketch.
40
+ #include "cheerlights_pixel.h"
41
+
42
+ for (const char* p = "Zo\xc3\xab \xe2\x99\xa5"; *p;) { // "Zoë ♥" as UTF-8
43
+ cl_pixel_glyph g;
44
+ if (!cl_pixel_find(cl_pixel_next(&p), &g)) continue;
45
+ for (uint8_t x = 0; x < g.width; x++) {
46
+ uint8_t column = cl_pixel_column(&g, x);
47
+ for (int y = 0; y < CL_PIXEL_ROWS; y++)
48
+ if (column >> y & 1) setPixel(left + x, y); // your display's call
49
+ }
50
+ left += g.width + 1;
51
+ }
52
+ ```
53
+
54
+ With PlatformIO, add `lib_deps = https://github.com/cheerlights/cheerlights-pixel-font.git#v1.0.0` instead of copying the header.
55
+ On AVR boards such as the Uno the glyph data stays in flash, so the whole font costs no RAM.
56
+ [`examples/arduino/ScrollText`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/arduino/ScrollText/ScrollText.ino) scrolls a message across an 8 by 32 NeoPixel panel.
57
+
58
+ In MicroPython, copy [`dist/micropython/cheerlights_pixel.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/micropython/cheerlights_pixel.py) to the board:
59
+
60
+ ```python
61
+ # An excerpt: grid is your neopixel.NeoPixel object.
62
+ import cheerlights_pixel as font
63
+
64
+ for x, column in enumerate(font.columns("CheerLights ♥")):
65
+ for y in range(8):
66
+ grid[y * 8 + x] = (40, 4, 3) if column >> y & 1 else (0, 0, 0)
67
+ ```
68
+
69
+ [`examples/micropython/scroll_matrix.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/micropython/scroll_matrix.py) is the full scroller for an 8 by 8 grid.
70
+
71
+ In CircuitPython, copy [`dist/cheerlights-pixel.bdf`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/cheerlights-pixel.bdf) to the board and load it with `adafruit_bitmap_font`, as in [`examples/circuitpython/code.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/circuitpython/code.py).
72
+
73
+ On a web page, use the WOFF2 font at a multiple of 8 pixels so each font pixel fills whole screen pixels:
74
+
75
+ ```css
76
+ @font-face { font-family: "CheerLights Pixel"; src: url("CheerLightsPixel-Regular.woff2") format("woff2"); }
77
+ .sign { font: 32px "CheerLights Pixel", monospace; -webkit-font-smoothing: none; }
78
+ ```
79
+
80
+ `CheerLightsPixelLED-Regular` draws each pixel as a round LED instead ([`examples/web`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/examples/web/index.html)).
81
+
82
+ In a terminal, show the live CheerLights color's name in that color:
83
+
84
+ ```bash
85
+ uv run examples/terminal/cheerlights_color.py
86
+ ```
87
+
88
+ ## What is in it
89
+
90
+ ![Every symbol in the font, and a string of lights in four colors](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/symbols.png)
91
+
92
+ - 365 glyphs: printable ASCII, Latin-1, Latin Extended-A, and Romanian's ș and ț, so names like Zoë, Müller, Łódź, and Ștefan scroll as they are written.
93
+ - Symbols for lights and seasons: lightbulb, Christmas light, LED, string of lights, globe, heart, star, snowflake, tree, bell, ornament, gift, snowman, pumpkin, ghost, bat, and skull, with the rest listed in [the glyph list](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/docs/glyphs.md).
94
+ - Emoji typed on a phone draw as the symbol they mean: ❤️, 💚, and 💜 as the heart, ⭐ as the star, 🌍 as the globe.
95
+ - A string of lights that joins: several in a row make one unbroken string.
96
+ - Letters take only the columns they need, from 1 for `i` to 5 for `m`, with one dark column between them, so scrolling text reads quickly.
97
+ - Rounded corners, a dotted zero, and descenders on g, j, p, q, and y.
98
+ - Two TrueType styles: square pixels and round LEDs.
99
+
100
+ ![The CheerLights colors as bulbs on a string, with their names below in each color](https://github.com/cheerlights/cheerlights-pixel-font/raw/main/images/lights.png)
101
+
102
+ ## Files
103
+
104
+ - [`dist/c/cheerlights_pixel.h`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/c/cheerlights_pixel.h): C and C++, one header, with lookup and a UTF-8 reader.
105
+ - [`dist/micropython/cheerlights_pixel.py`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/micropython/cheerlights_pixel.py): one file for MicroPython and CircuitPython.
106
+ - [`dist/cheerlights-pixel.bdf`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/cheerlights-pixel.bdf): BDF bitmap font, for CircuitPython's `bitmap_font` and font tools.
107
+ - [`dist/cheerlights-pixel.json`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/cheerlights-pixel.json): every glyph as columns, for any language.
108
+ - [`dist/fonts/`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/dist/fonts/): TrueType and WOFF2, in the pixel and LED styles.
109
+ - [`python/cheerlights_pixel`](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/python/cheerlights_pixel/__init__.py): the Python package.
110
+
111
+ ## Limits
112
+
113
+ - Latin scripts only: no Greek, Cyrillic, or CJK characters.
114
+ - Capitals with a mark above, such as É and Å, are drawn 5 rows tall so the mark fits in the 8-row cell.
115
+ - The Christmas light, LED, string of lights, and ornament have no Unicode characters, so they sit in the private use area (U+E000 to U+E003) and show only in this font.
116
+ - The TrueType and web fonts draw exactly at multiples of 8 pixels, but a renderer that auto-hints, such as FreeType 2.14's light hinting on many Linux desktops, can lift an accent a pixel at 8 and 16 pixels; the C, MicroPython, BDF, and JSON files always draw exactly.
117
+ - The Arduino example compiles for the Uno and the ESP32-S3; the MicroPython and CircuitPython examples have not been run on a board yet, though the BDF loads in CircuitPython's `bitmap_font` on a computer.
118
+
119
+ ## Documentation
120
+
121
+ - [Glyphs](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/docs/glyphs.md): what the font covers and every symbol with its code point.
122
+ - [Changing the font](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/docs/changing-the-font.md): the glyph sources, the accent marks, the build, and the tests.
123
+
124
+ ## License
125
+
126
+ [SIL Open Font License 1.1](https://github.com/cheerlights/cheerlights-pixel-font/blob/main/LICENSE): use the font in firmware, apps, documents, and pages, change it, and share it; it cannot be sold by itself.
127
+ CheerLights Pixel Font is part of [CheerLights](https://cheerlights.com), the lights around the world that share one color, set by anyone.
@@ -0,0 +1,38 @@
1
+ [project]
2
+ name = "cheerlights-pixel-font"
3
+ version = "1.0.0"
4
+ description = "CheerLights Pixel: a 5 by 7 pixel font for LED matrices, small screens, and terminals, with accents and symbols."
5
+ readme = "README.md"
6
+ requires-python = ">=3.9"
7
+ license = "OFL-1.1"
8
+ license-files = ["LICENSE"]
9
+ authors = [{ name = "CheerLights" }]
10
+ keywords = ["font", "pixel font", "led matrix", "cheerlights", "terminal", "bitmap font"]
11
+ classifiers = [
12
+ "Programming Language :: Python :: 3",
13
+ "Topic :: Text Processing :: Fonts",
14
+ "Topic :: Terminals",
15
+ ]
16
+
17
+ [project.urls]
18
+ Homepage = "https://cheerlights.com"
19
+ Source = "https://github.com/cheerlights/cheerlights-pixel-font"
20
+
21
+ [build-system]
22
+ requires = ["hatchling==1.27.0"]
23
+ build-backend = "hatchling.build"
24
+
25
+ [tool.hatch.build.targets.wheel]
26
+ packages = ["python/cheerlights_pixel"]
27
+
28
+ [tool.hatch.build.targets.sdist]
29
+ include = ["python/cheerlights_pixel", "README.md", "LICENSE"]
30
+
31
+ [dependency-groups]
32
+ dev = [
33
+ "pytest==9.0.1; python_version >= '3.11'",
34
+ "fonttools==4.69.1; python_version >= '3.11'",
35
+ "brotli==1.2.1; python_version >= '3.11'",
36
+ "pillow==13.0.0; python_version >= '3.11'",
37
+ "freetype-py==2.5.1; python_version >= '3.11'",
38
+ ]
@@ -0,0 +1,102 @@
1
+ """CheerLights Pixel: a 5 by 7 pixel font for LED matrices, small screens, and terminals.
2
+
3
+ import cheerlights_pixel as font
4
+
5
+ font.columns("Hi ♥") # columns of pixels, bit 0 the top row
6
+ print(font.dots("Hi ♥")) # LED dots, one text line per pixel row
7
+ print(font.blocks("Hi ♥")) # half blocks, two pixel rows per text line
8
+
9
+ The font covers printable ASCII, Latin-1, Latin Extended-A, and symbols such as the heart, the
10
+ snowflake, the pumpkin, and a string of lights. Licensed under the SIL Open Font License 1.1.
11
+ """
12
+ from ._glyphs import GLYPHS, IGNORED, VERSION
13
+
14
+ __all__ = ["ROWS", "VERSION", "Glyph", "glyph", "columns", "rows", "dots", "blocks", "colored", "covers"]
15
+ __version__ = VERSION
16
+
17
+ ROWS = 8
18
+
19
+
20
+ class Glyph:
21
+ """One character: its name, its columns (bit 0 the top row), and whether it joins its own kind without a gap."""
22
+
23
+ __slots__ = ("char", "name", "columns", "joins")
24
+
25
+ def __init__(self, char, name, columns, joins):
26
+ self.char, self.name, self.columns, self.joins = char, name, columns, joins
27
+
28
+ @property
29
+ def width(self):
30
+ return len(self.columns)
31
+
32
+ def rows(self, on="#", off="."):
33
+ """The glyph as ROWS strings, top row first."""
34
+ return ["".join(on if c >> y & 1 else off for c in self.columns) for y in range(ROWS)]
35
+
36
+ def __repr__(self):
37
+ return f"Glyph({self.char!r}, {self.name!r}, width={self.width})"
38
+
39
+
40
+ def glyph(char):
41
+ """The Glyph for one character, or None when the font has none."""
42
+ entry = GLYPHS.get(ord(char))
43
+ return Glyph(char, *entry) if entry else None
44
+
45
+
46
+ def covers(text):
47
+ """Whether the font has a glyph for every character of text (variation selectors and joiners need none)."""
48
+ return all(ord(c) in GLYPHS or ord(c) in IGNORED for c in text)
49
+
50
+
51
+ def columns(text, missing="?"):
52
+ """Text laid out as a list of columns (bit 0 the top row), one dark column between characters.
53
+
54
+ A character the font does not have draws as `missing`; pass missing=None to leave it out.
55
+ Emoji such as the red heart draw as the font's symbol, and the variation selectors after them draw as nothing.
56
+ Two joining characters (the string of lights) sit flush, so a row of them is one unbroken string.
57
+ """
58
+ out = []
59
+ previous = None
60
+ for char in text:
61
+ if ord(char) in IGNORED:
62
+ continue
63
+ g = glyph(char) or (glyph(missing) if missing else None)
64
+ if g is None:
65
+ continue
66
+ if previous is not None and not (previous.joins and g.joins):
67
+ out.append(0)
68
+ out.extend(g.columns)
69
+ previous = g
70
+ return out
71
+
72
+
73
+ def rows(text, on="#", off=".", missing="?"):
74
+ """Text as ROWS strings, top row first."""
75
+ cols = columns(text, missing)
76
+ return ["".join(on if c >> y & 1 else off for c in cols) for y in range(ROWS)]
77
+
78
+
79
+ def dots(text, on="●", off=" ", missing="?", trim=True):
80
+ """Text drawn with one character per pixel, like a sign of LEDs; trim drops empty rows at the top and bottom."""
81
+ lines = rows(text, on, off, missing)
82
+ if trim:
83
+ while lines and not lines[-1].strip(off):
84
+ lines.pop()
85
+ while lines and not lines[0].strip(off):
86
+ lines.pop(0)
87
+ return "\n".join(lines)
88
+
89
+
90
+ def blocks(text, missing="?"):
91
+ """Text drawn with half-block characters, two pixel rows to a text line, so it is 4 lines tall."""
92
+ cols = columns(text, missing)
93
+ shapes = {(0, 0): " ", (1, 0): "▀", (0, 1): "▄", (1, 1): "█"}
94
+ return "\n".join(
95
+ "".join(shapes[(c >> y & 1, c >> (y + 1) & 1)] for c in cols) for y in range(0, ROWS, 2)
96
+ ).rstrip("\n")
97
+
98
+
99
+ def colored(art, rgb):
100
+ """Wrap text drawn by dots() or blocks() in a 24-bit terminal color, such as the CheerLights color."""
101
+ r, g, b = rgb
102
+ return "\n".join(f"\x1b[38;2;{r};{g};{b}m{line}\x1b[0m" for line in art.split("\n"))
@@ -0,0 +1,406 @@
1
+ """CheerLights Pixel 1.0.0 glyph data. Copyright 2026 The CheerLights Pixel Font Authors (https://github.com/cheerlights/cheerlights-pixel-font). Licensed under the SIL Open Font License 1.1 (https://openfontlicense.org).
2
+
3
+ Generated by tools/build.py from source/. Do not edit; change the sources and build again.
4
+ """
5
+
6
+ VERSION = "1.0.0"
7
+
8
+ # Variation selectors and the zero-width joiner: drawn as nothing, taking no room.
9
+ IGNORED = frozenset({8205, 65038, 65039})
10
+
11
+ # code point: (name, columns with bit 0 the top row, joins); an alias repeats its glyph's entry
12
+ GLYPHS = {
13
+ 0x00020: ('space', bytes([0, 0]), False),
14
+ 0x00021: ('exclam', bytes([95]), False),
15
+ 0x00022: ('quotedbl', bytes([3, 0, 3]), False),
16
+ 0x00023: ('numbersign', bytes([20, 127, 20, 127, 20]), False),
17
+ 0x00024: ('dollar', bytes([36, 42, 127, 42, 18]), False),
18
+ 0x00025: ('percent', bytes([35, 19, 8, 100, 98]), False),
19
+ 0x00026: ('ampersand', bytes([54, 73, 85, 34, 80]), False),
20
+ 0x00027: ('quotesingle', bytes([3]), False),
21
+ 0x00028: ('parenleft', bytes([28, 34, 65]), False),
22
+ 0x00029: ('parenright', bytes([65, 34, 28]), False),
23
+ 0x0002a: ('asterisk', bytes([20, 8, 62, 8, 20]), False),
24
+ 0x0002b: ('plus', bytes([8, 8, 62, 8, 8]), False),
25
+ 0x0002c: ('comma', bytes([128, 96]), False),
26
+ 0x0002d: ('hyphen', bytes([8, 8, 8, 8]), False),
27
+ 0x0002e: ('period', bytes([64]), False),
28
+ 0x0002f: ('slash', bytes([96, 16, 8, 4, 3]), False),
29
+ 0x00030: ('zero', bytes([62, 65, 73, 65, 62]), False),
30
+ 0x00031: ('one', bytes([66, 127, 64]), False),
31
+ 0x00032: ('two', bytes([66, 97, 81, 73, 70]), False),
32
+ 0x00033: ('three', bytes([34, 65, 73, 73, 54]), False),
33
+ 0x00034: ('four', bytes([24, 20, 18, 127, 16]), False),
34
+ 0x00035: ('five', bytes([39, 69, 69, 69, 57]), False),
35
+ 0x00036: ('six', bytes([62, 73, 73, 73, 48]), False),
36
+ 0x00037: ('seven', bytes([1, 1, 121, 5, 3]), False),
37
+ 0x00038: ('eight', bytes([54, 73, 73, 73, 54]), False),
38
+ 0x00039: ('nine', bytes([6, 73, 73, 73, 62]), False),
39
+ 0x0003a: ('colon', bytes([36]), False),
40
+ 0x0003b: ('semicolon', bytes([128, 100]), False),
41
+ 0x0003c: ('less', bytes([8, 20, 34, 65]), False),
42
+ 0x0003d: ('equal', bytes([20, 20, 20, 20]), False),
43
+ 0x0003e: ('greater', bytes([65, 34, 20, 8]), False),
44
+ 0x0003f: ('question', bytes([2, 1, 81, 9, 6]), False),
45
+ 0x00040: ('at', bytes([62, 65, 93, 85, 94]), False),
46
+ 0x00041: ('A', bytes([126, 9, 9, 9, 126]), False),
47
+ 0x00042: ('B', bytes([127, 73, 73, 73, 54]), False),
48
+ 0x00043: ('C', bytes([62, 65, 65, 65, 34]), False),
49
+ 0x00044: ('D', bytes([127, 65, 65, 65, 62]), False),
50
+ 0x00045: ('E', bytes([62, 73, 73, 73, 65]), False),
51
+ 0x00046: ('F', bytes([126, 9, 9, 9, 1]), False),
52
+ 0x00047: ('G', bytes([62, 65, 73, 73, 58]), False),
53
+ 0x00048: ('H', bytes([127, 8, 8, 8, 127]), False),
54
+ 0x00049: ('I', bytes([65, 127, 65]), False),
55
+ 0x0004a: ('J', bytes([48, 64, 64, 64, 63]), False),
56
+ 0x0004b: ('K', bytes([127, 8, 20, 34, 65]), False),
57
+ 0x0004c: ('L', bytes([63, 64, 64, 64, 64]), False),
58
+ 0x0004d: ('M', bytes([127, 2, 12, 2, 127]), False),
59
+ 0x0004e: ('N', bytes([127, 4, 8, 16, 127]), False),
60
+ 0x0004f: ('O', bytes([62, 65, 65, 65, 62]), False),
61
+ 0x00050: ('P', bytes([127, 9, 9, 9, 6]), False),
62
+ 0x00051: ('Q', bytes([62, 65, 81, 33, 94]), False),
63
+ 0x00052: ('R', bytes([127, 9, 25, 41, 70]), False),
64
+ 0x00053: ('S', bytes([38, 73, 73, 73, 50]), False),
65
+ 0x00054: ('T', bytes([1, 1, 127, 1, 1]), False),
66
+ 0x00055: ('U', bytes([63, 64, 64, 64, 63]), False),
67
+ 0x00056: ('V', bytes([31, 32, 64, 32, 31]), False),
68
+ 0x00057: ('W', bytes([63, 64, 56, 64, 63]), False),
69
+ 0x00058: ('X', bytes([99, 20, 8, 20, 99]), False),
70
+ 0x00059: ('Y', bytes([3, 4, 120, 4, 3]), False),
71
+ 0x0005a: ('Z', bytes([97, 81, 73, 69, 67]), False),
72
+ 0x0005b: ('bracketleft', bytes([127, 65, 65]), False),
73
+ 0x0005c: ('backslash', bytes([3, 4, 8, 16, 96]), False),
74
+ 0x0005d: ('bracketright', bytes([65, 65, 127]), False),
75
+ 0x0005e: ('asciicircum', bytes([4, 2, 1, 2, 4]), False),
76
+ 0x0005f: ('underscore', bytes([128, 128, 128, 128, 128]), False),
77
+ 0x00060: ('grave', bytes([1, 2]), False),
78
+ 0x00061: ('a', bytes([32, 84, 84, 84, 120]), False),
79
+ 0x00062: ('b', bytes([127, 68, 68, 68, 56]), False),
80
+ 0x00063: ('c', bytes([56, 68, 68, 68, 68]), False),
81
+ 0x00064: ('d', bytes([56, 68, 68, 68, 127]), False),
82
+ 0x00065: ('e', bytes([56, 84, 84, 84, 88]), False),
83
+ 0x00066: ('f', bytes([4, 126, 5, 5]), False),
84
+ 0x00067: ('g', bytes([24, 164, 164, 164, 124]), False),
85
+ 0x00068: ('h', bytes([127, 4, 4, 4, 120]), False),
86
+ 0x00069: ('i', bytes([125]), False),
87
+ 0x0006a: ('j', bytes([128, 128, 125]), False),
88
+ 0x0006b: ('k', bytes([127, 16, 40, 68]), False),
89
+ 0x0006c: ('l', bytes([63, 64]), False),
90
+ 0x0006d: ('m', bytes([124, 4, 120, 4, 120]), False),
91
+ 0x0006e: ('n', bytes([124, 4, 4, 4, 120]), False),
92
+ 0x0006f: ('o', bytes([56, 68, 68, 68, 56]), False),
93
+ 0x00070: ('p', bytes([252, 36, 36, 36, 24]), False),
94
+ 0x00071: ('q', bytes([24, 36, 36, 36, 252]), False),
95
+ 0x00072: ('r', bytes([124, 8, 4, 4]), False),
96
+ 0x00073: ('s', bytes([72, 84, 84, 84, 36]), False),
97
+ 0x00074: ('t', bytes([4, 63, 68, 68]), False),
98
+ 0x00075: ('u', bytes([60, 64, 64, 64, 124]), False),
99
+ 0x00076: ('v', bytes([28, 32, 64, 32, 28]), False),
100
+ 0x00077: ('w', bytes([60, 64, 48, 64, 60]), False),
101
+ 0x00078: ('x', bytes([68, 40, 16, 40, 68]), False),
102
+ 0x00079: ('y', bytes([28, 160, 160, 160, 124]), False),
103
+ 0x0007a: ('z', bytes([68, 100, 84, 76, 68]), False),
104
+ 0x0007b: ('braceleft', bytes([8, 62, 65, 65]), False),
105
+ 0x0007c: ('bar', bytes([255]), False),
106
+ 0x0007d: ('braceright', bytes([65, 65, 62, 8]), False),
107
+ 0x0007e: ('asciitilde', bytes([8, 4, 8, 16, 8]), False),
108
+ 0x000a0: ('nbspace', bytes([0, 0]), False),
109
+ 0x000a1: ('exclamdown', bytes([250]), False),
110
+ 0x000a2: ('cent', bytes([24, 36, 126, 36, 36]), False),
111
+ 0x000a3: ('sterling', bytes([72, 126, 73, 73, 66]), False),
112
+ 0x000a4: ('currency', bytes([34, 28, 20, 28, 34]), False),
113
+ 0x000a5: ('yen', bytes([21, 22, 124, 22, 21]), False),
114
+ 0x000a6: ('brokenbar', bytes([119]), False),
115
+ 0x000a7: ('section', bytes([74, 85, 85, 41]), False),
116
+ 0x000a8: ('dieresis', bytes([1, 0, 1]), False),
117
+ 0x000a9: ('copyright', bytes([62, 65, 93, 85, 85, 65, 62]), False),
118
+ 0x000aa: ('ordfeminine', bytes([18, 21, 23]), False),
119
+ 0x000ab: ('guillemotleft', bytes([8, 20, 42, 20, 34]), False),
120
+ 0x000ac: ('logicalnot', bytes([8, 8, 8, 8, 24]), False),
121
+ 0x000ad: ('softhyphen', bytes([8, 8, 8, 8]), False),
122
+ 0x000ae: ('registered', bytes([62, 65, 95, 75, 85, 65, 62]), False),
123
+ 0x000af: ('macron', bytes([1, 1, 1, 1, 1]), False),
124
+ 0x000b0: ('degree', bytes([2, 5, 2]), False),
125
+ 0x000b1: ('plusminus', bytes([72, 72, 94, 72, 72]), False),
126
+ 0x000b2: ('twosuperior', bytes([9, 13, 10]), False),
127
+ 0x000b3: ('threesuperior', bytes([9, 11, 6]), False),
128
+ 0x000b4: ('acute', bytes([2, 1]), False),
129
+ 0x000b5: ('mu', bytes([252, 64, 64, 32, 124]), False),
130
+ 0x000b6: ('paragraph', bytes([6, 15, 127, 1, 127]), False),
131
+ 0x000b7: ('periodcentered', bytes([8]), False),
132
+ 0x000b8: ('cedilla', bytes([128, 64]), False),
133
+ 0x000b9: ('onesuperior', bytes([10, 15, 8]), False),
134
+ 0x000ba: ('ordmasculine', bytes([18, 21, 18]), False),
135
+ 0x000bb: ('guillemotright', bytes([34, 20, 42, 20, 8]), False),
136
+ 0x000bc: ('onequarter', bytes([39, 16, 8, 36, 50, 121, 32]), False),
137
+ 0x000bd: ('onehalf', bytes([39, 16, 8, 4, 74, 105, 80]), False),
138
+ 0x000be: ('threequarters', bytes([37, 23, 8, 36, 50, 121, 32]), False),
139
+ 0x000bf: ('questiondown', bytes([48, 72, 69, 64, 32]), False),
140
+ 0x000c0: ('Agrave', bytes([120, 21, 22, 20, 120]), False),
141
+ 0x000c1: ('Aacute', bytes([120, 20, 22, 21, 120]), False),
142
+ 0x000c2: ('Acircumflex', bytes([120, 22, 21, 22, 120]), False),
143
+ 0x000c3: ('Atilde', bytes([121, 21, 22, 22, 120]), False),
144
+ 0x000c4: ('Adieresis', bytes([120, 21, 20, 21, 120]), False),
145
+ 0x000c5: ('Aring', bytes([120, 23, 21, 23, 120]), False),
146
+ 0x000c6: ('AE', bytes([126, 9, 9, 127, 73, 65]), False),
147
+ 0x000c7: ('Ccedilla', bytes([62, 65, 193, 65, 34]), False),
148
+ 0x000c8: ('Egrave', bytes([56, 85, 86, 84, 68]), False),
149
+ 0x000c9: ('Eacute', bytes([56, 84, 86, 85, 68]), False),
150
+ 0x000ca: ('Ecircumflex', bytes([56, 86, 85, 86, 68]), False),
151
+ 0x000cb: ('Edieresis', bytes([56, 85, 84, 85, 68]), False),
152
+ 0x000cc: ('Igrave', bytes([69, 126, 68]), False),
153
+ 0x000cd: ('Iacute', bytes([68, 126, 69]), False),
154
+ 0x000ce: ('Icircumflex', bytes([70, 125, 70]), False),
155
+ 0x000cf: ('Idieresis', bytes([69, 124, 69]), False),
156
+ 0x000d0: ('Eth', bytes([127, 73, 73, 65, 62]), False),
157
+ 0x000d1: ('Ntilde', bytes([125, 9, 18, 34, 124]), False),
158
+ 0x000d2: ('Ograve', bytes([56, 69, 70, 68, 56]), False),
159
+ 0x000d3: ('Oacute', bytes([56, 68, 70, 69, 56]), False),
160
+ 0x000d4: ('Ocircumflex', bytes([56, 70, 69, 70, 56]), False),
161
+ 0x000d5: ('Otilde', bytes([57, 69, 70, 70, 56]), False),
162
+ 0x000d6: ('Odieresis', bytes([56, 69, 68, 69, 56]), False),
163
+ 0x000d7: ('multiply', bytes([34, 20, 8, 20, 34]), False),
164
+ 0x000d8: ('Oslash', bytes([62, 81, 73, 69, 62]), False),
165
+ 0x000d9: ('Ugrave', bytes([60, 65, 66, 64, 60]), False),
166
+ 0x000da: ('Uacute', bytes([60, 64, 66, 65, 60]), False),
167
+ 0x000db: ('Ucircumflex', bytes([60, 66, 65, 66, 60]), False),
168
+ 0x000dc: ('Udieresis', bytes([60, 65, 64, 65, 60]), False),
169
+ 0x000dd: ('Yacute', bytes([4, 8, 114, 9, 4]), False),
170
+ 0x000de: ('Thorn', bytes([127, 18, 18, 18, 12]), False),
171
+ 0x000df: ('germandbls', bytes([126, 1, 77, 74, 48]), False),
172
+ 0x000e0: ('agrave', bytes([32, 85, 86, 84, 120]), False),
173
+ 0x000e1: ('aacute', bytes([32, 84, 86, 85, 120]), False),
174
+ 0x000e2: ('acircumflex', bytes([32, 86, 85, 86, 120]), False),
175
+ 0x000e3: ('atilde', bytes([33, 85, 86, 86, 120]), False),
176
+ 0x000e4: ('adieresis', bytes([32, 85, 84, 85, 120]), False),
177
+ 0x000e5: ('aring', bytes([32, 87, 85, 87, 120]), False),
178
+ 0x000e6: ('ae', bytes([32, 84, 84, 56, 84, 88]), False),
179
+ 0x000e7: ('ccedilla', bytes([56, 68, 196, 68, 68]), False),
180
+ 0x000e8: ('egrave', bytes([56, 85, 86, 84, 88]), False),
181
+ 0x000e9: ('eacute', bytes([56, 84, 86, 85, 88]), False),
182
+ 0x000ea: ('ecircumflex', bytes([56, 86, 85, 86, 88]), False),
183
+ 0x000eb: ('edieresis', bytes([56, 85, 84, 85, 88]), False),
184
+ 0x000ec: ('igrave', bytes([1, 126]), False),
185
+ 0x000ed: ('iacute', bytes([126, 1]), False),
186
+ 0x000ee: ('icircumflex', bytes([2, 125, 2]), False),
187
+ 0x000ef: ('idieresis', bytes([1, 124, 1]), False),
188
+ 0x000f0: ('eth', bytes([56, 69, 70, 69, 62]), False),
189
+ 0x000f1: ('ntilde', bytes([125, 5, 6, 6, 120]), False),
190
+ 0x000f2: ('ograve', bytes([56, 69, 70, 68, 56]), False),
191
+ 0x000f3: ('oacute', bytes([56, 68, 70, 69, 56]), False),
192
+ 0x000f4: ('ocircumflex', bytes([56, 70, 69, 70, 56]), False),
193
+ 0x000f5: ('otilde', bytes([57, 69, 70, 70, 56]), False),
194
+ 0x000f6: ('odieresis', bytes([56, 69, 68, 69, 56]), False),
195
+ 0x000f7: ('divide', bytes([8, 8, 42, 8, 8]), False),
196
+ 0x000f8: ('oslash', bytes([56, 100, 84, 76, 56]), False),
197
+ 0x000f9: ('ugrave', bytes([60, 65, 66, 64, 124]), False),
198
+ 0x000fa: ('uacute', bytes([60, 64, 66, 65, 124]), False),
199
+ 0x000fb: ('ucircumflex', bytes([60, 66, 65, 66, 124]), False),
200
+ 0x000fc: ('udieresis', bytes([60, 65, 64, 65, 124]), False),
201
+ 0x000fd: ('yacute', bytes([28, 160, 162, 161, 124]), False),
202
+ 0x000fe: ('thorn', bytes([255, 36, 36, 36, 24]), False),
203
+ 0x000ff: ('ydieresis', bytes([28, 161, 160, 161, 124]), False),
204
+ 0x00100: ('Amacron', bytes([120, 21, 21, 21, 120]), False),
205
+ 0x00101: ('amacron', bytes([32, 85, 85, 85, 120]), False),
206
+ 0x00102: ('Abreve', bytes([121, 22, 22, 21, 120]), False),
207
+ 0x00103: ('abreve', bytes([33, 86, 86, 85, 120]), False),
208
+ 0x00104: ('Aogonek', bytes([126, 9, 9, 137, 126]), False),
209
+ 0x00105: ('aogonek', bytes([32, 84, 84, 212, 120]), False),
210
+ 0x00106: ('Cacute', bytes([56, 68, 70, 69, 68]), False),
211
+ 0x00107: ('cacute', bytes([56, 68, 70, 69, 68]), False),
212
+ 0x00108: ('Ccircumflex', bytes([56, 70, 69, 70, 68]), False),
213
+ 0x00109: ('ccircumflex', bytes([56, 70, 69, 70, 68]), False),
214
+ 0x0010a: ('Cdotaccent', bytes([56, 68, 69, 68, 68]), False),
215
+ 0x0010b: ('cdotaccent', bytes([56, 68, 69, 68, 68]), False),
216
+ 0x0010c: ('Ccaron', bytes([56, 69, 70, 69, 68]), False),
217
+ 0x0010d: ('ccaron', bytes([56, 69, 70, 69, 68]), False),
218
+ 0x0010e: ('Dcaron', bytes([124, 69, 70, 69, 56]), False),
219
+ 0x0010f: ('dcaron', bytes([56, 68, 68, 68, 127, 0, 3]), False),
220
+ 0x00110: ('Dcroat', bytes([127, 73, 73, 65, 62]), False),
221
+ 0x00111: ('dcroat', bytes([56, 68, 69, 69, 127]), False),
222
+ 0x00112: ('Emacron', bytes([56, 85, 85, 85, 68]), False),
223
+ 0x00113: ('emacron', bytes([56, 85, 85, 85, 88]), False),
224
+ 0x00114: ('Ebreve', bytes([57, 86, 86, 85, 68]), False),
225
+ 0x00115: ('ebreve', bytes([57, 86, 86, 85, 88]), False),
226
+ 0x00116: ('Edotaccent', bytes([56, 84, 85, 84, 68]), False),
227
+ 0x00117: ('edotaccent', bytes([56, 84, 85, 84, 88]), False),
228
+ 0x00118: ('Eogonek', bytes([62, 73, 73, 201, 65]), False),
229
+ 0x00119: ('eogonek', bytes([56, 84, 84, 212, 88]), False),
230
+ 0x0011a: ('Ecaron', bytes([56, 85, 86, 85, 68]), False),
231
+ 0x0011b: ('ecaron', bytes([56, 85, 86, 85, 88]), False),
232
+ 0x0011c: ('Gcircumflex', bytes([56, 70, 85, 86, 52]), False),
233
+ 0x0011d: ('gcircumflex', bytes([24, 166, 165, 166, 124]), False),
234
+ 0x0011e: ('Gbreve', bytes([57, 70, 86, 85, 52]), False),
235
+ 0x0011f: ('gbreve', bytes([25, 166, 166, 165, 124]), False),
236
+ 0x00120: ('Gdotaccent', bytes([56, 68, 85, 84, 52]), False),
237
+ 0x00121: ('gdotaccent', bytes([24, 164, 165, 164, 124]), False),
238
+ 0x00122: ('Gcedilla', bytes([62, 65, 201, 73, 58]), False),
239
+ 0x00123: ('gcedilla', bytes([24, 164, 166, 165, 124]), False),
240
+ 0x00124: ('Hcircumflex', bytes([124, 18, 17, 18, 124]), False),
241
+ 0x00125: ('hcircumflex', bytes([127, 4, 6, 5, 122]), False),
242
+ 0x00126: ('Hbar', bytes([127, 10, 10, 10, 127]), False),
243
+ 0x00127: ('hbar', bytes([127, 6, 6, 4, 120]), False),
244
+ 0x00128: ('Itilde', bytes([69, 125, 70, 2]), False),
245
+ 0x00129: ('itilde', bytes([1, 125, 2, 2]), False),
246
+ 0x0012a: ('Imacron', bytes([69, 125, 69]), False),
247
+ 0x0012b: ('imacron', bytes([1, 125, 1]), False),
248
+ 0x0012c: ('Ibreve', bytes([69, 126, 70, 1]), False),
249
+ 0x0012d: ('ibreve', bytes([1, 126, 2, 1]), False),
250
+ 0x0012e: ('Iogonek', bytes([65, 255, 65]), False),
251
+ 0x0012f: ('iogonek', bytes([253]), False),
252
+ 0x00130: ('Idotaccent', bytes([68, 125, 68]), False),
253
+ 0x00131: ('dotlessi', bytes([124]), False),
254
+ 0x00132: ('IJ', bytes([65, 127, 65, 32, 127]), False),
255
+ 0x00133: ('ij', bytes([125, 128, 125]), False),
256
+ 0x00134: ('Jcircumflex', bytes([32, 66, 65, 66, 60]), False),
257
+ 0x00135: ('jcircumflex', bytes([130, 129, 126]), False),
258
+ 0x00136: ('Kcedilla', bytes([127, 8, 148, 34, 65]), False),
259
+ 0x00137: ('kcedilla', bytes([127, 16, 168, 68]), False),
260
+ 0x00138: ('kgreenlandic', bytes([124, 16, 40, 68]), False),
261
+ 0x00139: ('Lacute', bytes([60, 64, 66, 65, 64]), False),
262
+ 0x0013a: ('lacute', bytes([63, 64, 2, 1]), False),
263
+ 0x0013b: ('Lcedilla', bytes([63, 64, 192, 64, 64]), False),
264
+ 0x0013c: ('lcedilla', bytes([63, 192]), False),
265
+ 0x0013d: ('Lcaron', bytes([60, 65, 66, 65, 64]), False),
266
+ 0x0013e: ('lcaron', bytes([63, 64, 3]), False),
267
+ 0x0013f: ('Ldot', bytes([63, 64, 64, 72, 64]), False),
268
+ 0x00140: ('ldot', bytes([63, 64, 8]), False),
269
+ 0x00141: ('Lslash', bytes([16, 63, 72, 68, 64]), False),
270
+ 0x00142: ('lslash', bytes([16, 63, 72, 68]), False),
271
+ 0x00143: ('Nacute', bytes([124, 8, 18, 33, 124]), False),
272
+ 0x00144: ('nacute', bytes([124, 4, 6, 5, 120]), False),
273
+ 0x00145: ('Ncedilla', bytes([127, 4, 136, 16, 127]), False),
274
+ 0x00146: ('ncedilla', bytes([124, 4, 132, 4, 120]), False),
275
+ 0x00147: ('Ncaron', bytes([124, 9, 18, 33, 124]), False),
276
+ 0x00148: ('ncaron', bytes([124, 5, 6, 5, 120]), False),
277
+ 0x00149: ('napostrophe', bytes([3, 124, 4, 4, 4, 120]), False),
278
+ 0x0014a: ('Eng', bytes([127, 2, 4, 72, 63]), False),
279
+ 0x0014b: ('eng', bytes([124, 4, 4, 132, 120]), False),
280
+ 0x0014c: ('Omacron', bytes([56, 69, 69, 69, 56]), False),
281
+ 0x0014d: ('omacron', bytes([56, 69, 69, 69, 56]), False),
282
+ 0x0014e: ('Obreve', bytes([57, 70, 70, 69, 56]), False),
283
+ 0x0014f: ('obreve', bytes([57, 70, 70, 69, 56]), False),
284
+ 0x00150: ('Ohungarumlaut', bytes([56, 70, 69, 70, 57]), False),
285
+ 0x00151: ('ohungarumlaut', bytes([56, 70, 69, 70, 57]), False),
286
+ 0x00152: ('OE', bytes([62, 65, 65, 127, 73, 73]), False),
287
+ 0x00153: ('oe', bytes([56, 68, 56, 84, 84, 88]), False),
288
+ 0x00154: ('Racute', bytes([124, 20, 22, 53, 72]), False),
289
+ 0x00155: ('racute', bytes([124, 10, 5, 4]), False),
290
+ 0x00156: ('Rcedilla', bytes([127, 9, 153, 41, 70]), False),
291
+ 0x00157: ('rcedilla', bytes([124, 8, 132, 4]), False),
292
+ 0x00158: ('Rcaron', bytes([124, 21, 22, 53, 72]), False),
293
+ 0x00159: ('rcaron', bytes([125, 10, 5, 4]), False),
294
+ 0x0015a: ('Sacute', bytes([72, 84, 86, 85, 36]), False),
295
+ 0x0015b: ('sacute', bytes([72, 84, 86, 85, 36]), False),
296
+ 0x0015c: ('Scircumflex', bytes([72, 86, 85, 86, 36]), False),
297
+ 0x0015d: ('scircumflex', bytes([72, 86, 85, 86, 36]), False),
298
+ 0x0015e: ('Scedilla', bytes([38, 73, 201, 73, 50]), False),
299
+ 0x0015f: ('scedilla', bytes([72, 84, 212, 84, 36]), False),
300
+ 0x00160: ('Scaron', bytes([72, 85, 86, 85, 36]), False),
301
+ 0x00161: ('scaron', bytes([72, 85, 86, 85, 36]), False),
302
+ 0x00162: ('Tcedilla', bytes([1, 1, 255, 1, 1]), False),
303
+ 0x00163: ('tcedilla', bytes([4, 63, 196, 68]), False),
304
+ 0x00164: ('Tcaron', bytes([4, 5, 126, 5, 4]), False),
305
+ 0x00165: ('tcaron', bytes([4, 63, 68, 68, 3]), False),
306
+ 0x00166: ('Tbar', bytes([1, 5, 127, 5, 1]), False),
307
+ 0x00167: ('tbar', bytes([20, 63, 84, 68]), False),
308
+ 0x00168: ('Utilde', bytes([61, 65, 66, 66, 60]), False),
309
+ 0x00169: ('utilde', bytes([61, 65, 66, 66, 124]), False),
310
+ 0x0016a: ('Umacron', bytes([60, 65, 65, 65, 60]), False),
311
+ 0x0016b: ('umacron', bytes([60, 65, 65, 65, 124]), False),
312
+ 0x0016c: ('Ubreve', bytes([61, 66, 66, 65, 60]), False),
313
+ 0x0016d: ('ubreve', bytes([61, 66, 66, 65, 124]), False),
314
+ 0x0016e: ('Uring', bytes([60, 67, 65, 67, 60]), False),
315
+ 0x0016f: ('uring', bytes([60, 67, 65, 67, 124]), False),
316
+ 0x00170: ('Uhungarumlaut', bytes([60, 66, 65, 66, 61]), False),
317
+ 0x00171: ('uhungarumlaut', bytes([60, 66, 65, 66, 125]), False),
318
+ 0x00172: ('Uogonek', bytes([63, 64, 64, 192, 63]), False),
319
+ 0x00173: ('uogonek', bytes([60, 64, 64, 192, 124]), False),
320
+ 0x00174: ('Wcircumflex', bytes([60, 66, 49, 66, 60]), False),
321
+ 0x00175: ('wcircumflex', bytes([60, 66, 49, 66, 60]), False),
322
+ 0x00176: ('Ycircumflex', bytes([4, 10, 113, 10, 4]), False),
323
+ 0x00177: ('ycircumflex', bytes([28, 162, 161, 162, 124]), False),
324
+ 0x00178: ('Ydieresis', bytes([4, 9, 112, 9, 4]), False),
325
+ 0x00179: ('Zacute', bytes([68, 100, 86, 77, 68]), False),
326
+ 0x0017a: ('zacute', bytes([68, 100, 86, 77, 68]), False),
327
+ 0x0017b: ('Zdotaccent', bytes([68, 100, 85, 76, 68]), False),
328
+ 0x0017c: ('zdotaccent', bytes([68, 100, 85, 76, 68]), False),
329
+ 0x0017d: ('Zcaron', bytes([68, 101, 86, 77, 68]), False),
330
+ 0x0017e: ('zcaron', bytes([68, 101, 86, 77, 68]), False),
331
+ 0x0017f: ('longs', bytes([0, 126, 1, 1]), False),
332
+ 0x00218: ('Scommaaccent', bytes([38, 73, 201, 73, 50]), False),
333
+ 0x00219: ('scommaaccent', bytes([72, 84, 212, 84, 36]), False),
334
+ 0x0021a: ('Tcommaaccent', bytes([1, 1, 255, 1, 1]), False),
335
+ 0x0021b: ('tcommaaccent', bytes([4, 63, 196, 68]), False),
336
+ 0x02013: ('endash', bytes([8, 8, 8, 8, 8]), False),
337
+ 0x02014: ('emdash', bytes([8, 8, 8, 8, 8, 8, 8]), False),
338
+ 0x02018: ('quoteleft', bytes([6, 1]), False),
339
+ 0x02019: ('quoteright', bytes([4, 3]), False),
340
+ 0x0201a: ('quotesinglbase', bytes([128, 96]), False),
341
+ 0x0201c: ('quotedblleft', bytes([6, 1, 6, 1]), False),
342
+ 0x0201d: ('quotedblright', bytes([4, 3, 4, 3]), False),
343
+ 0x0201e: ('quotedblbase', bytes([128, 96, 128, 96]), False),
344
+ 0x02020: ('dagger', bytes([2, 127, 2]), False),
345
+ 0x02021: ('daggerdbl', bytes([34, 127, 34]), False),
346
+ 0x02022: ('bullet', bytes([8, 28, 8]), False),
347
+ 0x02026: ('ellipsis', bytes([64, 0, 64, 0, 64]), False),
348
+ 0x02030: ('perthousand', bytes([35, 19, 104, 100, 2, 96, 96]), False),
349
+ 0x02039: ('guilsinglleft', bytes([8, 20, 34]), False),
350
+ 0x0203a: ('guilsinglright', bytes([34, 20, 8]), False),
351
+ 0x020ac: ('Euro', bytes([20, 62, 85, 85, 65]), False),
352
+ 0x02122: ('trademark', bytes([1, 7, 1, 6, 3, 6, 3]), False),
353
+ 0x02190: ('arrowleft', bytes([4, 14, 21, 4, 4]), False),
354
+ 0x02192: ('arrowright', bytes([4, 4, 21, 14, 4]), False),
355
+ 0x02600: ('sun', bytes([8, 34, 28, 93, 28, 34, 8]), False),
356
+ 0x02603: ('snowman', bytes([48, 123, 123, 123, 48]), False),
357
+ 0x02605: ('star', bytes([4, 108, 60, 31, 60, 108, 4]), False),
358
+ 0x0263a: ('smile', bytes([28, 46, 91, 95, 91, 46, 28]), False),
359
+ 0x0263b: ('smile', bytes([28, 46, 91, 95, 91, 46, 28]), False),
360
+ 0x02665: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
361
+ 0x0266a: ('note', bytes([48, 112, 63, 1, 2]), False),
362
+ 0x026a1: ('bolt', bytes([72, 108, 62, 27, 9]), False),
363
+ 0x026c4: ('snowman', bytes([48, 123, 123, 123, 48]), False),
364
+ 0x02705: ('check', bytes([12, 24, 48, 24, 12, 6, 3]), False),
365
+ 0x02713: ('check', bytes([12, 24, 48, 24, 12, 6, 3]), False),
366
+ 0x02714: ('check', bytes([12, 24, 48, 24, 12, 6, 3]), False),
367
+ 0x02744: ('snowflake', bytes([73, 42, 28, 127, 28, 42, 73]), False),
368
+ 0x02764: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
369
+ 0x027a1: ('arrowright', bytes([4, 4, 21, 14, 4]), False),
370
+ 0x02b05: ('arrowleft', bytes([4, 14, 21, 4, 4]), False),
371
+ 0x02b50: ('star', bytes([4, 108, 60, 31, 60, 108, 4]), False),
372
+ 0x0e000: ('christmaslight', bytes([24, 61, 125, 61, 24]), False),
373
+ 0x0e001: ('led', bytes([30, 255, 31, 127, 30]), False),
374
+ 0x0e002: ('stringlights', bytes([1, 1, 26, 60, 26, 1, 1]), True),
375
+ 0x0e003: ('ornament', bytes([24, 60, 126, 127, 126, 60, 24]), False),
376
+ 0x1f30d: ('globe', bytes([28, 42, 73, 127, 73, 42, 28]), False),
377
+ 0x1f30e: ('globe', bytes([28, 42, 73, 127, 73, 42, 28]), False),
378
+ 0x1f30f: ('globe', bytes([28, 42, 73, 127, 73, 42, 28]), False),
379
+ 0x1f310: ('globe', bytes([28, 42, 73, 127, 73, 42, 28]), False),
380
+ 0x1f31e: ('sun', bytes([8, 34, 28, 93, 28, 34, 8]), False),
381
+ 0x1f31f: ('star', bytes([4, 108, 60, 31, 60, 108, 4]), False),
382
+ 0x1f381: ('gift', bytes([124, 125, 126, 12, 126, 125, 124]), False),
383
+ 0x1f383: ('pumpkin', bytes([60, 94, 118, 93, 118, 94, 60]), False),
384
+ 0x1f384: ('tree', bytes([32, 52, 62, 127, 62, 52, 32]), False),
385
+ 0x1f3b5: ('note', bytes([48, 112, 63, 1, 2]), False),
386
+ 0x1f3b6: ('note', bytes([48, 112, 63, 1, 2]), False),
387
+ 0x1f47b: ('ghost', bytes([126, 63, 123, 63, 123, 63, 126]), False),
388
+ 0x1f480: ('skull', bytes([30, 115, 51, 111, 51, 115, 30]), False),
389
+ 0x1f499: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
390
+ 0x1f49a: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
391
+ 0x1f49b: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
392
+ 0x1f49c: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
393
+ 0x1f4a1: ('lightbulb', bytes([14, 113, 105, 113, 14]), False),
394
+ 0x1f4f6: ('signal', bytes([64, 0, 112, 0, 124, 0, 127]), False),
395
+ 0x1f514: ('bell', bytes([16, 28, 30, 95, 30, 28, 16]), False),
396
+ 0x1f5a4: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
397
+ 0x1f60a: ('smile', bytes([28, 46, 91, 95, 91, 46, 28]), False),
398
+ 0x1f642: ('smile', bytes([28, 46, 91, 95, 91, 46, 28]), False),
399
+ 0x1f90d: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
400
+ 0x1f90e: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
401
+ 0x1f987: ('bat', bytes([62, 28, 14, 28, 14, 28, 62]), False),
402
+ 0x1f9e1: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
403
+ 0x1fa75: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
404
+ 0x1fa76: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
405
+ 0x1fa77: ('heart', bytes([14, 31, 63, 126, 63, 31, 14]), False),
406
+ }