-
Notifications
You must be signed in to change notification settings - Fork 0
Console Information
As opposed to running in a GUI-based Terminal application.
Ideally, a big point of a script like this game would be to use it without a GUI.
Fonts used in the console are limited to 512 characters, which excludes some in this game script.
Conceivably one would:
- add the right characters to a custom font file, within the 512.
- change the codes in the script to use the ones used in the custom font file
The fonts I have encountered are in psf format. In my few attempts, fontforge as been unable to recognize these in psf or psf.gz formats.
The steps to get fontforge to recognize these might be like:
- convert psf font to bdf
- convert bdf to ttf
- customize font with fontforge
- convert ttf to bdf
- convert bdf to psf
- gzip psf to gz
- alter numbers in the script
Once the above was done, the process of using the script in the console might look like this:
- custom font file included in repo
- setfont -o fontfilename.psf / bdf?
- setfont fontfilename
- setfont -h14 / -h16 / -h18 / -h20 / -h22 / -h32
- setfont -d
- run game script with -c option
This could perhaps be done from the script without additional user steps, because these do not require admin privileges.
ls /usr/lib/kbd/consolefonts
dnf install bdf2psf otf2bdf
These packages facilitate customizing a ttf or otf font to then convert to bdf or psf.
I have not taken the time to go past a shallow understanding of the customization and conversion process. It is not straight forward, as there are issues controlling width and format. One can do it with some effort.