TrueType retro fonts.
Reason this release was yanked:
This version contains a glyph placement bug.
Project description
This package provides a programming library and a command line interface for conversion, creation and showing 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.
foot -f MSX
The -p option will make the converted font the primary font. It will also make the characters square and it will remove line spacing.
Testing
The character sets can be shown using the show subcommand. The first (and usually only) character set is shown as follows.
retrofont show 0
Additional character sets are numbered 1, 2, etc. The primary character set has index -1.
Creation
Glyphs can be drawn by hand and put in a YAML file.
- - data:
- ' # # '
- ' # # '
- ' ###### '
- '## ## ##'
- '########'
- ' ###### '
- '# #'
- '### ###'
offset: 1
This file can be converted into a character ROM file, which in turn can be used to create a TrueType font.
retrofont yml2rom demo.yaml demo.rom
retrofont rom2ttf -d ~/.local/share/fonts/ demo demo.rom
fc-cache -f
Modifying fonts
A character ROM file can be converted to a human readable YAML file using the rom2yml subcommand, in which te glyphs can be edited. The previously shown yml2rom can then be used to create the modified character ROM file.
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-0.0.4.tar.gz.
File metadata
- Download URL: retrofont-0.0.4.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
563d00f5bc643715ba567763637951c3026c8e42e9174bc18701ac15158ffbcb
|
|
| MD5 |
13e0353c3ae91929a280721f8afffcea
|
|
| BLAKE2b-256 |
950c29ee8d5a16eeea5c3aab0607746429370a463d874dd6d59a39073009864c
|
File details
Details for the file retrofont-0.0.4-py2.py3-none-any.whl.
File metadata
- Download URL: retrofont-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16d1411a4a55c14fce58e27da6b4182e4ee195ade63cdd5c74efcb7549bed137
|
|
| MD5 |
80203e4b62d522f76be0ddc09fc3f07f
|
|
| BLAKE2b-256 |
717985d50dee3cdc5e89c24c598f3e1b2305b553e21769a8958326112816fc4f
|