Dynamic textfields and listing them

so i want to have my dynamic text listed with a consistent space between each textfield.

However, the textfields can have varying amounts of text, so just doing txt.y = t*40 would not cut it.

I’ve tried getting txt.length to calculate how many lines it would be, but if i change the font size it changes everything.

How can i do this easily?