The function
wrap-text-for-pane
takes a string
text
and returns a list of strings. Together the strings in
strings
contain all the non-whitespace characters of
text
and are suitable for displaying this text on
pane
. That is, each string has a display width no greater than the width of
pane
when drawn using the font of
pane
.