Font Creator Now Creates Adafruit GFX Fonts

ESP32 Development Board WiFi+Bluetooth Ultra-Low Power Consumption Dual Cores ESP-32 ESP-32S Board
Integrated antenna and RF balun, power amplifier, low-noise amplifiers, filters, and power management module. The entire solution takes up the least amount of printed circuit board area. This board is used with 2.4 GHz dual-mode Wi-Fi and Bluetooth chips by TSMC 40nm low power technology, power and RF properties best, which is safe, reliable, and scalable to a variety of applications.

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.

fontpreview
The Font Creator Preview

To create fonts which you can use in the Adafruit library follow these steps:

  1. Go to: http://oleddisplay.squix.ch/
  2. Choose font family, style and size
  3. Now Choose “Adafruit GFX Font” from Library Version dropdown
  4. Click “Create”
  5. Copy the created font into a new file in your Arduino IDE, e.g. arial14.h and add a
    #include "arial14.h"

    in your ino-file

  6. Use the font by calling
    tft.setFont(&ArialMT_14);

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…

Posted by squix78

16 comments

  1. Very cool Daniel…I’ve found your font generator to come in handy, and you keep making it better! What about adding the Meteocons font to allow scaling this into sizes other than those that you’ve included by default in your weather display?

  2. This is really great. Would it be possible to add some user defined characters to the font, like umlauts and the ° sign?

  3. Arduino uno 32KB.
    For this reason the font file must be small.
    I just want to use the numbers.
    I will not use letters.
    I will use the Droid Sans 36
    How do I do this for Adafruit GFX font.

    So how can I make the letters ineffective?

  4. Hi, Firstly, that font generator is great, thanks,

    There is a small bug in it though, I generated a font called Yellowtail in point size 32. There is no tilda character (~) which is code 0x7E, so the last character in the table is 0x7D. At the end of the file however the last character is declared as 0x7E, so if the ~ character is printed then garbage appears on the screen!

    The last character should be 0x7D for that font, or the ~ symbol should be included.

  5. Hi, as of yesterday the generator isn’t working anymore, it does not seem to load the page. Any idea when it will be running again?

    Thanks for the great tool!

    • Hi! thank you for letting me know. I restarted the server, now it seems to run ok. I’ll have to look at the logs to understand why it didn’t respond. Please let me know if you see it again…
      Dani

  6. Hi Mr. Eichhorn

    It turns out your 3D printing case cutout is too far away from the USB port. Need to modify the hole for the USB port. Currently I am living and working in china so google map wont work, I just can see a dot without a map. Is there anyway to turn this into your weather station colour ?
    I have 12 PCBs in my hand, I wanna give them away. If you or your fans are interested let me know.

    • Hi Fred! Thank you for the feedback and your kind offer! About the map: is the dot on blue ground? This could also mean that the positioning based on WiFi did not work. You can also hard code the location if that is the case. The library also supports maps from MapQuest, you just need to change a few lines in the code. This project is using the exact same hardware as the WeatherStation Color, so you can just upload the WeatherStation code and you are good to go. About the PCBs: very much interested to give them away to fans. How should we do that? I announce it and they contact you or you send them to me and I ship them to the winners? Can you contact me on Twitter @squix78?

      • Hi, Thanks for your replay, I have changed the code a little bit and also changed the google api link : https://maps.googleapis.com/maps/….. ( DOES NOT WORK) . for china it should be changed to https://maps.google.cn/maps/…. . its woking well now.
        If I upload the WeatherStation Color then LCD wont light up. I cant seam to get around with it.should i change the pin?
        For the PCB if I send all of them together would cost me cost me an arm and a leg!!!
        I can send you by ordinary post (one by one) or if someone interested to pay the post I can send them all.

Leave a Reply