It would be perfect if it was possible to set the vertical alignment directly by some parameter in the textBox object, but it is also possible to calculate it from the height of the text block. If the block height is not known, it is possible to calculate it if the total number of lines is known.
I couldn't identify a simple way to get neither the size of the text block nor the number of lines that the text occupies inside the
textBox object (the
textSize() function and the
.size() method return a height relative to a unit of the