Smooth Google Icons with 7789 TFT #2315
-
I've got the font conversion to smooth fonts down pat using Bodmer's method. I'm trying to figure out how to take Google Icons (https://fonts.google.com/icons) and turn them into 48x48 smooth graphics. Currently, I use one of the online converters to convert from PNG to hex and store that as const unsigned char array, then use drawbmp. They are never "crisp". Is drawXbmp a better solution? or is there a solution. Is displaying a 48x48 JPEG a better way? I'm all ears......Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If your processor has sufficient RAM then you can render a PNG direct to the screen. Simple icons typically end up as very smallfiles that way. See example. Another option is to find a font with suitable icons. |
Beta Was this translation helpful? Give feedback.
-
I have added an example that may be of interest, it renders PNG images that have a transparent area. Example here: |
Beta Was this translation helpful? Give feedback.
I have added an example that may be of interest, it renders PNG images that have a transparent area. Example here:
https://github.com/Bodmer/TFT_eSPI/tree/master/examples/PNG%20Images/Flash_transparent_PNG