https://github.com/sigmanificient/ttf_to_tty
Converts TTF fonts to PSF, A TTY compatible font format
https://github.com/sigmanificient/ttf_to_tty
Last synced: 8 months ago
JSON representation
Converts TTF fonts to PSF, A TTY compatible font format
- Host: GitHub
- URL: https://github.com/sigmanificient/ttf_to_tty
- Owner: Sigmanificient
- Created: 2023-08-19T11:40:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-19T12:16:38.000Z (about 2 years ago)
- Last Synced: 2024-12-26T00:08:32.982Z (10 months ago)
- Language: Nix
- Homepage:
- Size: 246 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TTF to TTY

*Apl Mono font converted by this script, with a small font size*
## How to run
If you dont have `nix`, you can install it [here](https://nixos.org/download.html).
This is the only dependency required, as other dependencies will be managed by Nix.```sh
nix run github:Sigmanificient/ttf_to_tty [font.ttf] [size] [dpi]
```
> Or, wihtin the repo `nix run . [font.ttf] [size] [dpi]`You'll need to adjust the `size` & `dpi` parameter to get the best of your font.
Good result can be achieve within the 10-18 point size with 80-160 dpi.> **Warning**
> You may have a lot of warning due to missing glyphs.> **Note**
> The script will create 2 font files, but only the `.psf` one will be useful to you.## Set your font
Use the following command to set the font on the tty.
```sh
setfont [font.psf]
```You can see all the characters of your newly created font using `showconsolefont`.
If you need to reset your font back to the default simply type `setfont` without additional arguments.> **Note**
> You can use `-d` to double the font size.