Putting text nodes beneath each other (SOLVED)

I’m using several text nodes instead of just one, for design purposes, and the problem is that each text can be several lines long, or just one. In any case, the plan is to put the texts right beneath each other, without overlapping or huge gaps.
So, how can I check how many lines a text node has? Or is there a different method?

You can get metrics with gui.get_text_metrics_from_node() or gui.get_text_metrics() this can tell you how to position each to the other.

4 Likes