neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
948 stars 191 forks source link

TFT_eSPI AND FreeFont #344

Closed Koxx3 closed 3 years ago

Koxx3 commented 3 years ago

Hello,

thanks for yhis wonderful lib !

I use the TFT_eSPI lib and I'd like to use freeFonts.

With standard font, no issue ... 20210208_231457

With a custom font, the menu is not displayed correctly : 20210208_231417

Any idea why and how to solve this ?

Thanks !

Koxx3 commented 3 years ago

FIY, I started with this sample : https://github.com/neu-rah/ArduinoMenu/blob/master/examples/adafruitGfx_eTFT/TFT_eSPI/ArduinoMenu_LilyGo_TTGO_T-display_demo/ArduinoMenu_LilyGo_TTGO_T-display_demo.ino

neu-rah commented 3 years ago

Hi, please change https://github.com/neu-rah/ArduinoMenu/blob/master/examples/adafruitGfx_eTFT/TFT_eSPI/ArduinoMenu_LilyGo_TTGO_T-display_demo/ArduinoMenu_LilyGo_TTGO_T-display_demo.ino#L250

to match you font character size

Koxx3 commented 3 years ago

ok, it worked ;) thanks !