tewi-font icon indicating copy to clipboard operation
tewi-font copied to clipboard

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

Open stobenski opened this issue 11 years ago • 9 comments

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.

stobenski avatar Jun 27 '14 06:06 stobenski

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

lucy avatar Jun 28 '14 09:06 lucy

This apparently doesn't work anymore.

lucy avatar Feb 21 '16 11:02 lucy

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 avatar Feb 23 '16 20:02 ghost

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]

ghost avatar Feb 23 '16 22:02 ghost

@sshbio thanks

lucy avatar Feb 24 '16 01:02 lucy

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 avatar Feb 24 '16 16:02 ghost

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

ghost avatar Feb 24 '16 21:02 ghost

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

lucy avatar Feb 25 '16 08:02 lucy

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

ghost avatar Feb 25 '16 22:02 ghost