Cozette icon indicating copy to clipboard operation
Cozette copied to clipboard

psfu for console

Open digidoor opened this issue 1 year ago • 7 comments

Cozette is a full font with a lot of unicode glyphs, but it would be amazing if there were a paired down version for use in the actual linux console where cozette would really shine. As is, attempting to use cozette (.psf version) in the console returns an error setfont: ERROR kdfontop.c:211 put_font_kdfontop: ioctl(KDFONTOP): Invalid argument, presumably due to all the extra (unicode?) glyphs. I've been trying to look into hacking together a psfu of cozette but it's not the right time for me and might be a trivial endeavor for the devs! Console cozette would be a blast.

digidoor avatar Feb 12 '24 18:02 digidoor

this would be nice! trying to repackage this for void linux after the previous maintainer left and it would be a nice addition! not sure exactly what it looks like to make a tty font but would be appreciated.

thoughtpatterns avatar Mar 08 '24 02:03 thoughtpatterns

realized this is already mentioned in a few other issues. i was considering adding a bdf2psf step in the void package template but it feels like it makes more sense to come from upstream and you seem to have already acknowledged that so take your time with it.

thoughtpatterns avatar Mar 10 '24 00:03 thoughtpatterns

Note to self: there's a psf-cozette AUR package that seems to handle this neatly.

the-moonwitch avatar May 08 '24 08:05 the-moonwitch

This package does not work for me on debian (I ran the script myself). It produces letter is that are just small dots on the bottom, and so on. The problematic letters are "I, i, l, j"

knee41 avatar Jun 05 '24 20:06 knee41

To be clear I know you didn't write this package, I just included this info of my own experience in case it's of use. Thank you for your work.

knee41 avatar Jun 05 '24 20:06 knee41

It seems that bdf2psf does not work well if byte width of BITMAP table is larger than required in BBX. Some narrow width characters in cozette_hidpi.bdf hit this limitation. Normal version is OK.

example:

STARTCHAR I
ENCODING 73
SWIDTH 500 0
DWIDTH 12 0
BBX 6 16 4 0 <- 6 pixel wide = fit in 1 byte
BITMAP <- 2 byte wide
FC00
FC00
3000
3000
3000
3000
3000
3000
3000
3000
3000
3000
3000
3000
FC00
FC00
ENDCHAR

AUR package has been fixed.

Piroro-hs avatar Jun 13 '24 11:06 Piroro-hs

It seems that bdf2psf does not work well if byte width of BITMAP table is larger than required in BBX. Some narrow width characters in cozette_hidpi.bdf hit this limitation. Normal version is OK.

example:

STARTCHAR I
ENCODING 73
SWIDTH 500 0
DWIDTH 12 0
BBX 6 16 4 0 <- 6 pixel wide = fit in 1 byte
BITMAP <- 2 byte wide
FC00
FC00
3000
3000
3000
3000
3000
3000
3000
3000
3000
3000
3000
3000
FC00
FC00
ENDCHAR

AUR package has been fixed.

Thank you so much!! That's brill!

knee41 avatar Jul 19 '24 00:07 knee41