Flow/wrap text into an irregular shape

Roger Eller roger.e.eller at sealedair.com
Thu Jan 2 18:50:25 EST 2014


Strangely, if the text size is made bigger, so it will fit into a larger
triangle, the width of the "Fview" field must be kept small during re-flow.
 Then the width can be increased to match the width of the triangle.  I am
unsure why, but it works.

Here is an example:
https://dl.dropboxusercontent.com/u/54789013/Android/triangle_text/tri_txt_bigger.livecode

~Roger

On Tue, Dec 31, 2013 at 6:44 AM, Thierry Douez <th.douez at gmail.com> wrote:

> > 2013/12/30 Roger Eller <roger.e.eller at sealedair.com>:
>
> >> 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:
> >>
> >>> 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.
>
> Ok, I've done the correction and calculate automatically the
> number of lines of the field. I've added another button so we
> can wrap by char or by word. I've already send to you the new stack
> and it would be nice if you tell us when you put it on your dropbox.
>
> Happy new year  Livecoders!
>
> BONNE ANNEE et MEILLEURS VOEUX 2014.
>
> ------------------------------------------------
> Thierry Douez - http://sunny-tdz.com
> Maker of sunnYpdf - sunnYperl - sunnYmidi - sunnYmage
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list