Flow/wrap text into an irregular shape
Thierry Douez
th.douez at gmail.com
Mon Dec 30 13:29:42 EST 2013
2013/12/30 Roger Eller <roger.e.eller at sealedair.com>:
> Thanks for that Theirry. I had to snip the repeat forever because it was,
> um... repeating forever. :)
Hi Roger,
don't have this behavior here.
2 thoughts:
- local Nlines = *your number of lines you want in your view field*
( 19 was right in my own stack)
- the latest lines are empty; I didn't check that case..
and field "Ftmp" can be made invisible :)
No time right now to investigate.
Let see if I can do something before next year :)
Regards,
Thierry
>
> 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?"
------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYpdf - sunnYperl - sunnYmidi - sunnYmage
More information about the use-livecode
mailing list