We are about to switch to a new forum software. Until then we have removed the registration on this forum.
size(500, 300);
textAlign(LEFT);
textSize(40);
float h1 = textAscent() + textDescent();
text("Hello", 100, h1);
line(0, h1, width, h1);
textSize(20);
float h2 = textAscent() + textDescent();
text("Hello", 101, h2+h1);
line(0, h2+h1, width, h2+h1);
textSize(15);
float h3 = textAscent() + textDescent();
text("Hello", 102, h3+h2+h1);
line(0, h3+h2+h1, width, h3+h2+h1);
So that the y position of the "current" line is the sum of the heights of the previous lines and the height of its own. Looks like this at the moment:
Answers
Thank you very much.