TrueType retro fonts.
Project description
This package provides a programming library and a command line interface for conversion, creation and manipulation of TrueType retro fonts.
Quick start
Convert from ROM
Download a character ROM (e.g., one from the MSX) and run the following command.
retrofont rom2ttf -d ~/.local/share/fonts/ MSX charset_international.raw
fc-cache -f
Open a new terminal that uses the newly created font. In Wayland we can use foot as follows.
foot -f MSX
In X, we can use xterm.
xterm -fa MSX
Plain text mixed with MSX characters.
The -p option additionally uses the converted font as the primary font. It will also make the characters square and it will remove line spacing.
Primary font using the MSX character set.
Adjusting the terminal foreground and background colours can have quite a convincing effect.
Not a screenshot of a Commodore 64 emulator.
Creation
Glyphs can be drawn by hand and put in a YAML file.
- # ...
- - data:
- ' # # '
- ' # # '
- ' ###### '
- '## ## ##'
- '########'
- ' ###### '
- '# #'
- '### ###'
offset: 0
# ...
This file can be converted into a character ROM file, which in turn can be used to create a TrueType font.
retrofont yml2rom test_font.yaml test_font.rom
retrofont rom2ttf -d ~/.local/share/fonts/ test_font test_font.rom
fc-cache -f
Newly created glyph in the UTF-8 Private Use Area.
Please see ReadTheDocs for the latest documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retrofont-1.0.0.tar.gz.
File metadata
- Download URL: retrofont-1.0.0.tar.gz
- Upload date:
- Size: 754.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a671c081abae5c1d879091bd20b2fcfc27fee07049c3f7f25066f8e37e3d481d
|
|
| MD5 |
732718b61308caa1fe91e13b24092a95
|
|
| BLAKE2b-256 |
6187d01492104638d2fdbff1150caae893503cd57accb60cc6dd0055e366e28b
|
Provenance
The following attestation bundles were made for retrofont-1.0.0.tar.gz:
Publisher:
release.yml on jfjlaros/retrofont
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
retrofont-1.0.0.tar.gz -
Subject digest:
a671c081abae5c1d879091bd20b2fcfc27fee07049c3f7f25066f8e37e3d481d - Sigstore transparency entry: 1746398300
- Sigstore integration time:
-
Permalink:
jfjlaros/retrofont@66d111af2c53a80fd74fe65bf66ab60cb6c92dba -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/jfjlaros
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@66d111af2c53a80fd74fe65bf66ab60cb6c92dba -
Trigger Event:
push
-
Statement type:
File details
Details for the file retrofont-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: retrofont-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4e0969ee93a9864a94a7d6e61a96281a44bb4bd8b9cc5e68f00f88c5baa52a5
|
|
| MD5 |
9a8310bf3c9da6db654076f69ad18e88
|
|
| BLAKE2b-256 |
cd93365ab52b0fca67d1ff858c40b9c20603558985901a1a4ee8bce7317466fc
|
Provenance
The following attestation bundles were made for retrofont-1.0.0-py2.py3-none-any.whl:
Publisher:
release.yml on jfjlaros/retrofont
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
retrofont-1.0.0-py2.py3-none-any.whl -
Subject digest:
d4e0969ee93a9864a94a7d6e61a96281a44bb4bd8b9cc5e68f00f88c5baa52a5 - Sigstore transparency entry: 1746398423
- Sigstore integration time:
-
Permalink:
jfjlaros/retrofont@66d111af2c53a80fd74fe65bf66ab60cb6c92dba -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/jfjlaros
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@66d111af2c53a80fd74fe65bf66ab60cb6c92dba -
Trigger Event:
push
-
Statement type: