Join GitHub today
The font_img.pl script allows to add extra fonts into the Arduino UTFT Library by Henning Karlsen.
The script generates an image for selected font and size; the image is then used as an input for Font Maker UTFT Tool.
An image for the FreeMono font of size 24 can be generated using the command
./font_img.pl -fontname FreeMono -fontsize 24 --out .
The generated image is stored into FreeMono_24.png file in the working directory and looks as follows
The C file that was created from this image with the Font Maker UTFT Tool is as follows
The script was developed and tested in Linux environment only.