The hight of character
-
Hello,
I use this font, and now I wont to know what is hight of a charchter?
canvas1.loadFont("/fonts/GenSenRounded-R.ttf", SD);
canvas1.createRender(60);
canvas1.setTextSize(60);I use the above commands.
Any sugestion?Cheers,
Jan
-
@powersoft I kind of ran into this the other day. I found a font I liked online, but was not sure how to gauge the height of the font and the placement of the text on the screen. I ended up using trial and error which kind of sucked due to the lengthy compile and upload process.
-
This is available in the TFT_eSPI base class to canvas, but is not exposed to us.
The following seems to work:int height = ((TFT_eSPI&)Canvas).fontHeight();