Changing Font Style of Text Already in a Field

Dave Cragg dcragg at lacscentre.co.uk
Fri Oct 28 17:25:56 EDT 2005


On 28 Oct 2005, at 20:48, Chipp Walters wrote:

> Both Klaus and Signe Marie Sanne have good suggestions for doing this:
>
> set the textfont of char 1 to -1 of fld "X" to to "Lucida Grande"
>
> Both of their solutions involve explicitly set the font of the  
> characters. Another way is to do as you do:
>
> set the textFont of fld "X" to "Lucida Grande"
> put the text of fld "X" into fld "X"
>
> This has the added advantage if you cut and paste the text from fld  
> "X" to another fld, it doesn't automatically take the font settings  
> with it.

And just for variety (or confusion perhaps), this will do essentially  
the same as Chipp's suggestion.

   set the textfont of char 1 to -1 of fld "X" to empty
   set the textFont of fld "X" to "Lucida Grande"

Dave



More information about the use-livecode mailing list