I have bunch of .psf files in sizes 6x6 - 32x32, each has 256 characters with unicode map appended.
I'm able to set each of them with setfont font.psf command, and it works just fine.
But for some reason I'm not able to retrieve them from TTY if previously set font size was between 17x17 and 24x24 (incl).
setfont -o font_out.psfget_font: GIO_FONT: Invalid argument
Probably if font's width spans over exactly 3 bytes is somehow problematic.
I've also tried to use KDFONTOP ioctl with KD_FONT_OP_GET op. It works fine only if font size is not in the problematic range too, but ioctl call returns -EPERM to me (which is probably something different from what setfont reports with "Invalid argument").
After all, it is probably a bug in the kernel but the only case when KDFONTOP can return -EPERM is when op is different than KD_FONT_OP_GET so I'm really lost.
I have bunch of .psf files in sizes 6x6 - 32x32, each has 256 characters with unicode map appended. I'm able to set each of them with
setfont font.psf
command, and it works just fine. But for some reason I'm not able to retrieve them from TTY if previously set font size was between 17x17 and 24x24 (incl).setfont -o font_out.psf
get_font: GIO_FONT: Invalid argument
Probably if font's width spans over exactly 3 bytes is somehow problematic. I've also tried to useKDFONTOP
ioctl withKD_FONT_OP_GET
op. It works fine only if font size is not in the problematic range too,but ioctl call returns-EPERM
to me (which is probably something different from what setfont reports with "Invalid argument").After all, it is probably a bug in the kernel but the only case when KDFONTOP can return-EPERM
is when op is different thanKD_FONT_OP_GET
so I'm really lost.edit: actually errno in my case is also
-EINVAL
Please find fonts attached cp437_psf.zip