This PR adds the minimum necessary changes to support the reading of text string dimensions in the current font mode. These APIs are essential in order to enable other libraries to offer horizontal / vertical text justification with ILI9341_t3.
Details
Add measureTextWidth(), measureTextHeight()
Largely based on the work by @blackketter in his ILI9341_t3 fork, with additional fixes for font height metrics in setFontAdafruit() mode
Testing
Confirmed full text justification works correctly after integrating into the GUIslice GUI framework library (using both the default Adafruit-GFX font as well as the ILI9341_t3 fonts).
Confirmed existing ILI9341_t3 examples such as graphicstest & DemoSauce work correctly
This PR adds the minimum necessary changes to support the reading of text string dimensions in the current font mode. These APIs are essential in order to enable other libraries to offer horizontal / vertical text justification with ILI9341_t3.
Details
measureTextWidth()
,measureTextHeight()
setFontAdafruit()
modeTesting
Thanks