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();
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login