I'm working on a project with an Adafruit 128x64 display. My problem is that the default font is a little too small. Since size 2 is way too big, I have to change the font. Is there a slightly bigger font available, which I can also set the background colour (display.setTextColor(WHITE,BLACK);)? Unfortunately my search for the font hasn't been succsessful yet.
I'm using the Adafruit_GFX and the Adafruit_SSD1306 libraries.
The background color option only works with a few of the Adafruit fonts. Not sure if anyone has taken the trouble to figure out how to encode other fonts to work with that, and it would not work on proportionally spaced fonts anyway.
So I tried to change to the U8g2 library. But unfortunately I'm having problems with the constructor. I can't get it to work.
One problem that I'm facing now (which could also have been solved with U8g2) is values that are not get printed correctly. In my code I read "Ramp" and "Speed". I think it has to do with overwriting numbers.
Hi, with this tool https://rop.nl/truetype2gfx/, you can make a custom font, from any ttf font and use it with Adafruit_GFX library.
When you make your custom font, you have to save font header file in the Adafruit_GFX library - Fonts folder and include it in the code.