Text fonts of text and text fields
Lynch, Jonathan
bnz2 at cdc.gov
Tue Aug 2 14:28:24 EDT 2005
Set the textfont of char 1 to -1 of field "myField" to...
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Jim Hurley
Sent: Tuesday, August 02, 2005 2:26 PM
To: use-revolution at lists.runrev.com
Subject: Text fonts of text and text fields
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
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list