-
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi Tom! Unfortunately, currently there is no easy way to change font scaling w/o editing source code of GEM. I really should add this feature in future updates (although there is one caveat that I have to figure something out about, see below). That being said, here is small rundown of the changes in source code that can be made to scale font size 2x times:
And in your sketch set menuItemHeight appropriately to accommodate enlarged text (e.g. The limitation of this approach is that it does nothing to enlarge sprites (i.e. pictograms that are used to draw arrows and checkboxes), so the icons will look rather small compared to text. And that is the caveat that I was referring to earlier. I am a little hesitate to add new set of sprites with 2x dimensions risking to further bloat the library size. So I will have to figure something out=) Here are gists with all necessary edits, you can replace existing And to wrap this up, here are some photos. Hope that will help=) |
Beta Was this translation helpful? Give feedback.
-
Hi, @tomaculum ! Not sure if still relevant, but just want to let you know that setting text size for Adafruit GFX version of GEM is now available through Have a good day! |
Beta Was this translation helpful? Give feedback.
Hi Tom!
Unfortunately, currently there is no easy way to change font scaling w/o editing source code of GEM. I really should add this feature in future updates (although there is one caveat that I have to figure something out about, see below). That being said, here is small rundown of the changes in source code that can be made to scale font size 2x times:
_agfx.setTextSize(2)
here: https://github.com/Spirik/GEM/blob/m…