I need to add line breaks in the positions that the browser naturally adds a newline in a paragraph of text.
For example:
This is some very long tex
I don't think you'll be able to do this with any kind of accuracy without embedding Gecko/WebKit/Trident or essentially recreating them.