talamus / rw-psf

Convert Linux console font to either Plain Text or BMP image – and back!
Other
33 stars 5 forks source link

writepsf seems to shift 256x256 bmps for 16x16 fonts to the right by 28 pixels #2

Open Tachytaenius opened 3 months ago

Tachytaenius commented 3 months ago

The solution for me was to shift (and wrap) my bmp to the left by 28 pixels before passing it into writepsf, then it comes out OK on the terminal and from readpsf. I'm not sure if you'll be able to replicate this?

Tachytaenius commented 3 months ago

It also seems that, after scrolling and wrapping your font horizontally, the right 28 pixels of the image (previously the left 28) need to be shifted down by 1, wrapping back to the top. This compensates for some vertical movement that also occurs.

Really looks a lot like the bmp data is being misinterpreted! I'm using GIMP.