set the textStyle["box"] of word x of line y to true is very fast

Richmond richmondmathewson at gmail.com
Thu Feb 20 05:41:29 EST 2014


On 20/02/14 11:00, BNig wrote:
> Hallo Thierry,
>
> it is about the same:
> 1200 milliseconds on a text of 1000 lines and about 2.000.000 chars.
>
> the point is that using "set the textStyle["bold"]" on chunks is a lot
> faster, on top it preserves preexisting textStyles of the chunk whereas "set
> the textStyle of chunk to "bold"" is slower and wipes preexisting
> textStyles.
>
> Although I noticed "set the textStyle["plain"]" or "set the
> textStyle["empty"]" throws an error. I think it should be allowed.

That would be logical and consistent.

Richmond.

>
> à bientôt
>
> Bernd
>
> Thierry Douez wrote
>> Hallo Bernd,
>> and what about
>>      set the textStyle["bold"] of field 1 to true
>> against
>>      set the textStyle of field 1 to "bold"
>> ??
>
>
>
>
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/set-the-textStyle-box-of-word-x-of-line-y-to-true-is-very-fast-tp4676113p4676140.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> 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