Lingo Dictionary > D-F > font |
![]() ![]() ![]() |
font
Syntax
member(
whichCastMember
)
.
font
the font of member
whichCastMember
Description
Text and field cast member property; determines the font used to display the specified cast member and requires that the cast member contain characters, if only a space. The parameter whichCastMember
can be either a cast member name or number.
The Director player for Java doesn't map to other fonts when converting a movie; Java substitutes the default font for any unsupported font. Use only Java's supported fonts as values for the font
member property in a movie that plays back as an applet.
Java offers only the following cross-platform fonts:
Java font name |
Corresponding Windows font |
Corresponding Macintosh font |
---|---|---|
Helvetica |
Arial |
Helvetica |
TimesRoman |
Times New Roman |
Times |
Courier |
Courier-New |
Courier |
Dialog |
MS Sans Serif |
Chicago or Charcoal |
DialogInput |
MS Sans Serif |
Geneva |
ZapfDingbats |
WingDings |
Zapf Dingbats |
Default |
Arial |
Helvetica |
The font
member property can be tested and set.
To see an example of font
used in a completed movie, see the Text movie in the Learning\Lingo Examples folder inside the Director application folder.
Example
This statement sets the variable named oldFont
to the current font
setting for the field cast member Rokujo Speaks:
oldFont = member("Rokujo Speaks").font
See also
text
, alignment
, fontSize
, fontStyle
, lineHeight (cast member property)
![]() ![]() ![]() |