I am new to javascript, so excuse my lack of actual code.
I have a block of text that I want to fit into a space. I want to break it into rows. I need to find where the newlines are to add a new line and some offset. Then I want to subtract the offset from the row word length (if needed) and get a new cycle until there is something to do.
I was actually hoping to get an answer on the splitting on newlines, or at least finding out how long a row is by pixels.
Why not use the element offset?