ayoy / fontedit

A desktop app to import, edit and export fonts as byte arrays for use in embedded systems
https://kapusta.cc/fontedit
GNU General Public License v3.0
323 stars 23 forks source link

Waveshare EPD #11

Open fizzyade opened 3 years ago

fizzyade commented 3 years ago

Hi,

I've found your tool, but I cannot get it to work with the waveshare display, you specifically mentioned this in your reddit post and in various other posts, but I don't know if anything has changed, but I only seem to be able to get a corrupted font displayed.

I added the extra structure as required, I'm using a 48 point monaco font as my source, and this gives me 29 pixels by 52. Looking at the waveshare code it performs the necessary adjustment for the padding where the width is not a multiple of 8 bits, but if I put either 29 or 32 as the width of my characters, I still can't get a working output.

It would be really useful if this tool could just directly output the structures required for a waveshare compatible font without having to manually go in and create the necessary structures.

I haven't investigated too deeply why exactly I'm not getting the correct output, but I think the addition of directly generating would be a very useful feature for many other users.

fizzyade commented 3 years ago

Ok, for anybody else who gets garbled characters, the waveshare format requires that the bits be reversed.

carterlloyds commented 3 years ago

Thank you! This was driving me crazy.