get-word-wrap can even return the pair size next to the lines, if you need the info to properly place the text :-)