set the textStyle to not bold
Richard Gaskin
ambassador at fourthworld.com
Sat Oct 3 13:38:25 EDT 2009
DunbarX wrote:
> The proffered scripts all necessitate that the original text, likely from a
> field, be manHandled word by word.
>
> This is because text in a variable does not retain the textStyle of the
> source. But don't I remember that there is a way, or a gadget, that holds the
> style along with the raw text? The only reason it might matter is speed; a
> lot of getting and setting goes on in the solutions offered. It might be worth
> it to put massive amounts of text in a variable and process there,
> returning the new styled text to the field in one put.
>
> Seems like I saw this somewhere...
As Jacque and others here have pointed out, htmlText is the
highest-fidelity representation of field contents modifiable by script.
Dr. Raney said that if you ever find a way to do anything in a field
which is not transferable to another field via htmlText it would be a bug.
Extra bonus points that htmlText is just plain text in a language
designed for working with text easily.
HtmlText is the with-the-grain solution for modifying style runs in Rev.
Coming from a HC/SuperCard background I was initially prone to habits
acquired with those other tools, but other tools don't have htmlText
which Raney added to overcome the limitations of alternatives.
--
Richard Gaskin
Fourth World
Rev training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
revJournal blog: http://revjournal.com/blog.irv
More information about the use-livecode
mailing list