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

BNig bernd.niggemann at uni-wh.de
Thu Feb 20 04:00:56 EST 2014


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.

à 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.




More information about the use-livecode mailing list