Good to know, I still use c2 though.
I apologize I didn’t look at the section to see the question was for c3.
Does the textheight expression take into account new lines and wrapping? If so you could divide it by the height for a single word to get the number of lines.
If it acts like that js function then I guess you could use the same algorithm above, just set the text before using the textWidth expression.
And actually for c2 you could do something similar. Create a bunch of dummy text objects with the same font, set each to a word from the text, wait till the next frame, and use the measurements with the algorithm. Then you wouldn’t need to use js at all.