Hi, I was wondering if it was possible to, say, draw a rectangle around the exact width and height of a block of text on screen.
Let’s say my text() is like follows:
String stringText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
text(stringText, x, y, width-10, height-10);
Because of the 4th and 5th parameter above, this text will wrap around to multiple lines. Is it possible to find the width and height of this text block, so I could draw a rectangle around this with absolutely no breathing space for the furthest letter to the right, or the character with the lowest point on the bottom?