how to convert Tewi for using as *.psf consolefont?
I know about bdf2psf tool but have problem with converting:
bdf2psf --fb Tewi-normal-11.bdf /usr/share/bdf2psf/standard.equivalents /usr/share/bdf2psf/useful.set 512 Tewi-normal-11.psf
/usr/bin/bdf2psf: Tewi-normal-11.bdf: the width is not integer number.
any advice? Thanks.
Should be fixed in https://github.com/lucy/tewi-font/commit/44febb49556f6538ee4b2eb782549ef6e1520e74.
This apparently doesn't work anymore.
I had the same problem with my font miniwi, and I fixed it by hardcoding the font size in bdf2psf perl file.
This worked for me, and I maybe it could work for tewi font as well.
In adition, it may be possible to use the conversion toolchain from terminus font, generating the terminus font worked for me by following the readme (basically make command triggering multiple scripts featuring perl).
@sshbio thanks
I got psf generation to work, and here is how I did (I will improve the psf version soon):
- Downloaded
bdf2psf - Extracted it
-
cdto theusr/bin/path - ran this command:
./bdf2psf --fb ~/path-to-tewi-font/tewi-medium-11.bdf ../share/bdf2psf/standard.equivalents ../share/bdf2psf/ascii.set 512 /tmp/tewi.psf
Then in text mode (TTY, linux console), I ran setfont /tmp/tewi.psf and it worked for the ASCII characters.
To add more than ascii characters (what I am currently doing).
[EDIT] I made a version with a proposed font set: I will improve it as described in #18.
showconsolefont shows the included characters.
I improved the psf font again and updated my previous message with the details in #18.
To build it, I cd to this dir, and then run:
./bdf-to-psf --fb '<path-to>/tewi-font/tewi-medium-11.bdf' 'equivalents' 'sets/uni-2.set+sets/box-blocks.set' 512 '<path-to>/tewi.psf'
One may need to adapt the path to run it on its machine.
[EDIT] Updated links
I may steal some of the scripts and put them in this repo.
Great, let me know if you need any kind of any help for anything, :)