cbm80amiga / rrefontgen

RRE fonts generator utility
GNU Lesser General Public License v3.0
9 stars 1 forks source link

Going from custom bitmap to rrefont? #2

Open Umohammad opened 3 years ago

Umohammad commented 3 years ago

First- thank you for all your work. I'm using your ILI9341_Fast library and RREFont library, they're excellent.

I'd like to be able to display my own bitmaps on my display, just like your color RRE bitmap example.

I've viewed that example, and I understand that a custom image needs to be separated by colors, and each color needs to be converted to a RREfont so that it can be printed, just like in your video's example. I've gotten your example working on my own display, and can manipulate size, color, position, etc. I see that each color is sometimes split into multiple characters, each drawing a portion of the image. Very clever implementation.

How exactly do I go about using RREFontgen to convert an image file into the necessary .h files to recreate your color bitmap example? My apologies- while decently experienced with arduinos, I'm less experienced with actual C. I tried using an online converter to convert a monochrome .bmp to .pbm and using the command line to run "rrefontgen image.pbm 32 32 testoutput" but was given errors, "need w and h in pbm file", but this was a wild guess at best.

Thank you for your help!