Text fonts of text and text fields

Jim Hurley jhurley at infostations.com
Tue Aug 2 14:25:53 EDT 2005


I am learning a lot more about font than I really wanted to know.

I see now that the textfont of the field is not necessarily the same 
as the text in that field--how else could you have multiple fonts in 
a field.

So I can set the testFont of the field easily in script: Set the 
textFont of field 1 to "times"

But how would I set the textFont of all the text in the field, other 
than the kludge:

repeat with i = 1 to the number of lines in field 1
    set the textFont of line i of field 1 to "times"
end repeat

Or by using the Text menu.

Also if "put the textfont of line 1 of field 1 into tFont" yields an 
empty value for tFont, I presume that RR is using the User Font. I do 
I script for the User Font? It's not listed in the preferences.

JIm


More information about the use-livecode mailing list