[squeak-dev] Rendering a text along an arc
karlramberg at gmail.com
Mon Dec 31 14:38:29 UTC 2018
This part of code in TextOnCurve>>composeLinesFrom: startingIndex
withLines: startingLines atY: startingY
lines last last < text size
[lines size > 1
and: [(text at: (i := lines last last) + 1) ~= Character
[i = lines last first
ifFalse: [lines last stop: i - 1]]].
If the text overflow the end of the curve only the first segment of the
text will be shown.
I think this will make sense when the text overflow into a predecessor or
successor. See TextMorph.
But there are no hooks back to the text morph so there is no way to know if
there is a predecessor or successor.
So if the curve is to short it will be kind of buggy...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev