davetcc / tcMenu

Menu library for Arduino, mbed and ESP with designer UI and remote control capabilities.
https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/
Apache License 2.0
275 stars 25 forks source link

Calculate the minimum Y size of the font to ensure base line is correct #265

Closed davetcc closed 1 year ago

davetcc commented 1 year ago

When fonts are rendered onto low DPI screens every pixel matters, sometimes desktop fonts leave space around items that we'd not want on embedded devices. This issue is to use the calculated values that we already have to determine the minimum possible Y size of the font, instead of trusting the line advance information in the font itself.

davetcc commented 1 year ago

This has to be moved to 3.0, without it the font layout (ascent and descent) cannot be correctly calculated