I've been trying to use embedded Text morphs to label lines. But they don't work right if I want them centered or right justified.
To demonstrate:
* make a PolygonMorph (perhaps open, so it's a line) * embed a TextMorph in it * tell the TextMorph to "follow owner's curve" * Choose "centered" alignment for the TextMorph
Some or all the text disappears. Stretch the line out and see what happens. The problem seems to be that the text doesn't use the width of its owner as the width to justify within.
To demonstrate:
- make a PolygonMorph (perhaps open, so it's a line)
- embed a TextMorph in it
- tell the TextMorph to "follow owner's curve"
- Choose "centered" alignment for the TextMorph
Some or all the text disappears. Stretch the line out and see what happens. The problem seems to be that the text doesn't use the width of its owner as the width to justify within.
You're right. I never put this in. Looks like your chance to own Squeak's TextOnCurve ;-).
- Dan
squeak-dev@lists.squeakfoundation.org