slavfox / Cozette

A bitmap programming font optimized for coziness 💜
MIT License
2.83k stars 42 forks source link

cozette.fnt does not work on a linux console #83

Closed advantageous-overtake closed 1 year ago

advantageous-overtake commented 1 year ago

Using Arch Linux

# cp ~/downloads/cozette.fnt /usr/share/kbd/consolefonts
# setfont /usr/share/kbd/consolefonts/cozette.fnt
setfont: ERROR setfont.c:527 kfont_load_font: Bad input file size
slavfox commented 1 year ago

.fnt is a Windows font format. setfont loads psf fonts, which FontForge does not support as an output format. Since Cozette is built in FontForge, this will not be fixed.

A quick Google search brought up http://www.seasip.info/Unix/PSF/index.html as a possible way to convert one of the Cozette versions to PSF, but I cannot vouch for whether it works.

immjs commented 1 year ago

Hi, sorry for necro-bumping, I just wanted to say psftools's fnt2psf did the trick for me, although it will only work if you use --psf1, which I assume is the version that Linux's vconsole supports? (that would explain why the cozette.psf in Releases doesn't work)