This is a function that you'd have to implement yourself. You could break
the string up on spaces and then put them beside or above each other, as
appropriate. (A real word processing program uses a more complex algorithm
that involves adjusting the spaces between words (and possibly elsewhere, I
am not sure).)

The function "para" does something like this for picts.

Robby

On Sat, Jul 22, 2017 at 12:34 PM kay <klu...@gmail.com> wrote:

> When using 2htdp/image to create a text image, is this possible to specify
> a "bounding box" for the image, so that the text could be wrapped to fit
> that box?
>
> E.g., below line:
>
>   (text "This wide, sharp telescopic view reveals galaxies scattered
> beyond the stars of the Milky Way at the northern boundary of the
> high-flying constellation Pegasus. Prominent at the upper right is NGC
> 7331. A mere 50 million light-years away, the large spiral is one of the
> brighter galaxies not included in Charles Messier's famous 18th century
> catalog. The disturbed looking group of galaxies at the lower left is
> well-known as Stephan's Quintet. About 300 million light-years distant, the
> quintet dramatically illustrates a multiple galaxy collision, its powerful,
> ongoing interactions posed for a brief cosmic snapshot. On the sky, the
> quintet and NGC 7331 are separated by about half a degree." 10 "black")
>
>
> creates a super long line text image without wrapping, when I want to
> overlay it on another image, it's mostly useless. I want to specify a
> "size" (aka bounding box) for it so it wraps properly.
>
> Is that possible?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to