Adafruit GFX button labels longer & curvier?

Hi there,

Using the Adafruit_GFX library and it's built-in button function.

The button labels only allow a string to be so long (please see picture).

Is there a way to mess with the library itself in order to allow a longer label.

Furthermore, could it be altered to use different fonts from the Ada library rather than the basic system one?

Thank you!

Jason.

Yes, you can read the library code. Very simple to increase the length of labels.

A bit fiddly to use the FreeFonts but not difficult.
Likewise you can add shading or blended colours.

But quite honestly, I think that Adafruit have made very sensible compromises.
It looks quite nice. It works well. It fits on a Uno.

David.

Yes of course it can be altered.
You can open the specific files with notepad++ and have a look for yourself how the button shapes are generated. If you are going to modify something, best practice is to rename the .h & .cpp files before you do so,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.