Flow/wrap text into an irregular shape

Roger Eller roger.e.eller at sealedair.com
Mon Dec 30 11:58:41 EST 2013


Thanks for that Theirry.  I had to snip the repeat forever because it was,
um... repeating forever.  :)

So, here are the two approaches we have thus far:

https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt.livecode

https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt_Thierry.livecode

~Roger


On Sun, Dec 29, 2013 at 11:25 AM, Thierry Douez <th.douez at gmail.com> wrote:

> Hi Roger,
>
> Here is a quick-and-dirty first attempt.
>
> The char version makes a perfect regular triangle,
> the word version works but could probably have to be tuned a bit more..
> And I'm using measureText(..) available in LC 6.5.
> Feel free to ask anything or I can even send my stack if you prefer.
>
> Happy new year!
>
> Thierry
>
>
> 2013/12/27 Roger Eller <roger.e.eller at sealedair.com>:
> >  Imagine a multi-line text field which overlays a triangle polygon, which
> > is wide at the top, and comes to a point at the bottom.  I want the text
> to
> > detect the edges of the triangle and wrap at those edges.  The result
> would
> > be a triangle shaped body of text (centered).  My question to you is "How
> > can this be achieved?"
>



More information about the Use-livecode mailing list