daisy font converter
A small command line tool to convert PixelForge font files into c-arrays for the electrosmith daisy.
Usage
daisyfontconverter --input pat/to/my_font.pxf --width 4 --height g
Example output
static const uint16_t Font4x6[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, // Space
0x0000, 0x4000, 0x4000, 0x4000, 0x0000, 0x4000, // !
0x0000, 0xA000, 0xA000, 0x0000, 0x0000, 0x0000, // "
...
0x0000, 0x0000, 0xE000, 0x2000, 0x4000, 0xE000, // z
0x0000, 0x6000, 0x4000, 0xC000, 0x4000, 0x6000, // {
0x0000, 0x4000, 0x4000, 0x4000, 0x4000, 0x4000, // |
0x0000, 0xC000, 0x4000, 0x6000, 0x4000, 0xC000, // }
0x0000, 0x0000, 0x2000, 0xE000, 0x8000, 0x0000, // ~ Tilde
};
FontDef Font_4x6 = {4, 6, Font4x6};
The result of that output should go into oled_fonts.c in libDaisy.
Additionally put a extern FontDef Font_4x6; into oled_fonts.h
Run task build_all in VSCode and use your font as usually
Installation
Option A: just download the python script in the daisyfontconverter directory (no external dependencies) and run it with python:
python3 cli.py -input pat/to/my_font.pxf --width 4 --height g
Option B: Install via pip using
pip install daisyfontconverter
and run via
daisyfontconverter --input pat/to/my_font.pxf --width 4 --height g
Metadata
Release files for daisyfontconverter 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| daisyfontconverter-1.0.0.tar.gz | 3.7 kB | Without provenance | Details for daisyfontconverter-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| daisyfontconverter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for daisyfontconverter-1.0.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / daisyfontconverter-1.0.0.tar.gz
| Download URL | daisyfontconverter-1.0.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2d894d53d61a7a1a035f77be5ceda6cecaac23f818ec44ff97b9e491670859f
|
|
BLAKE2b-256 checksum How to use checksums |
a1ba50e8f3ccd056ce633a45a874ebd9abcdb1d3dab457ca729ed934e905e070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2
|
Release files / daisyfontconverter-1.0.0-py3-none-any.whl
| Download URL | daisyfontconverter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
074613987d20ffe114dcc451df44ec418dd9462af083ab9dfc9a714b6a342fbc
|
|
BLAKE2b-256 checksum How to use checksums |
5f124d86c5217da26cbe66dbf8cfbe81cfd44221af9c96185d8e85b6da891223
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2
|
Security for daisyfontconverter 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.