font changing script?
Howard Bornstein
bornstein at designeq.com
Mon Jun 9 18:42:00 EDT 2003
>The key thing to remember is that variables don't have
>a textFont of their own ; they're just flat text.
Although you *can* work with formatted text in a variable if you deal
with HTML. For example:
on mouseup
put the htmltext of field "text" into temp
replace "$" with "<font face=IpaTimes>$</font>" in temp
set the htmltext of fld "text" to temp
end mouseup
would work fine and for large amounts of text would probably be
significantly faster (although if the $ was already specially formatted,
the script would be slightly more complicated).
Regards,
Howard Bornstein
____________________
D E S I G N E Q
www.designeq.com
More information about the use-livecode
mailing list