set the textStyle["box"] of word x of line y to true is very fast
Thierry Douez
th.douez at gmail.com
Thu Feb 20 04:41:02 EST 2014
2014-02-20 10:00 GMT+01:00 BNig <bernd.niggemann at uni-wh.de>:
> 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.
Thanks. Will try to remember this one..
Regards,
Thierry
> Although I noticed "set the textStyle["plain"]" or "set the
> textStyle["empty"]" throws an error. I think it should be allowed.
>
> à 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"
------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage - sunnYpdf
More information about the use-livecode
mailing list