Is it possible to detect how many line breaks (also called text wraps/newlines) the text inside a text object has?
Another solution to my problem might be to automatically set the height of a text object based on the lines it's will contain. Is that possible?
I need this in order to figure out if the text I'm dynamically inserting to a text object has one or two lines, so that I can create a new text object below it at the correct y-distance.
Besides the wording I used in the title, I also tried searching with the following search words: "detect line wrap", "number of line wraps".