How to wrap a string at the edge of a rectangle?
Posted: Thu Apr 07, 2016 3:49 pm
Implicit breaking a string into lines filling a text string seems to fail.
I used version 8.0.0-dp-16 and tried:
Think this is what Mark Waddingham suggested in another thread. Though the result
is that all words of a string are drawn in one line without wrapping at the edge.
For what it's worth even enforcing a multiline string by adding a new line like:
does not work as expected. The result is "Foo Bar" in one line.
Ralf
I used version 8.0.0-dp-16 and tried:
Code: Select all
fill text mText at top left of rectangle [0, 0, 50, 200] on this canvas
is that all words of a string are drawn in one line without wrapping at the edge.
For what it's worth even enforcing a multiline string by adding a new line like:
Code: Select all
put "Foo" into mText
put newline after mText
put "Bar" after mText
fill text mText at center of rectangle [0, 0, 50, 200] on this canvas
Ralf