lucy / tewi-font

small bitmap font
MIT License
607 stars 22 forks source link

how to convert Tewi for using as *.psf consolefont? #7

Open stobenski opened 10 years ago

stobenski commented 10 years ago

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.

lucy commented 10 years ago

Should be fixed in https://github.com/lucy/tewi-font/commit/44febb49556f6538ee4b2eb782549ef6e1520e74.

lucy commented 8 years ago

This apparently doesn't work anymore.

ghost commented 8 years ago

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.

ghost commented 8 years ago

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).

[Download]

lucy commented 8 years ago

@sshbio thanks

ghost commented 8 years ago

I got psf generation to work, and here is how I did (I will improve the psf version soon):

  1. Downloaded bdf2psf
  2. Extracted it
  3. cd to the usr/bin/ path
  4. 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.

ghost commented 8 years ago

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.

tewi.psf

[EDIT] Updated links

lucy commented 8 years ago

I may steal some of the scripts and put them in this repo.

ghost commented 8 years ago

Great, let me know if you need any kind of any help for anything, :)