As first task for the upcoming Weather Station Color project I wanted to adapt my online font generator. Easily creating fonts in various sizes will make work on the Weather Station code a lot easier. Since my own display library doesn’t support the color TFT screen I switched to Adafruit’s library. They provide a converter but it needs to be compiled and I wanted to have this feature available on my web based font converter. So I analyzed the Adafruit font files and the converter and ported it to Java.
To create fonts which you can use in the Adafruit library follow these steps:
- Go to: http://oleddisplay.squix.ch/
- Choose font family, style and size
- Now Choose “Adafruit GFX Font” from Library Version dropdown
- Click “Create”
- Copy the created font into a new file in your Arduino IDE, e.g. arial14.h and add a
in your ino-file
- Use the font by calling
If you are missing fonts in the font creator please contact me. New fonts should have a license which allows me to add them to the font creator…
A ridiculous amount of coffee was consumed in the process of building this project. Add some fuel if you'd like to keep me going!