User Guide

248
Description
Cast member property; determines the styles applied to the font used to display the specified field
cast member, character, line, word, or other chunk expression and requires that the field cast
member contain characters, if only a space.
The value of the property is a string of styles delimited by commas. Lingo uses a font that is a
combination of the styles in the string. The available styles are plain, bold, italic, underline,
shadow, outline, and extended; on the Macintosh, condensed also is available.
Use the style plain to remove all currently applied styles. The parameter
whichCastMember can be
either a cast member name or number.
For a movie playing back as an applet, plain, bold, and italic are the only valid styles for the
fontStyle member property. The Director player for Java doesnt support underline, shadow,
outline, extended, or condensed font styles.
This property can be tested and set.
To see an example of
fontStyle used in a completed movie, see the Text movie in the Learning/
Lingo Examples folder inside the Director application folder.
Examples
This statement sets the variable named oldStyle to the current fontStyle setting for the field
cast member Rokujo Speaks:
oldStyle = member("Rokujo Speaks").fontStyle
This statement sets the fontStyle member property for the field cast member Poem to bold
italic:
member("Poem").fontStyle = [#bold, #italic]
This statement sets the fontStyle property of the third word of the cast member Sons Names
to italic:
member("Son’s Names").word[3].fontStyle = [#italic]
This statement sets the fontStyle member property of word 1 through word 4 of text member
myNote to bold italic:
member("myNote").word[1..4].fontstyle = [#bold, #italic]
See also
text, alignment, fontSize, font, lineHeight (cast member property)
foreColor
Syntax
member(castName).foreColor = colorNumber
set the foreColor of member castName to colorNumber
sprite whichSprite.foreColor
the foreColor of sprite whichSprite
Description
Cast member property; sets the foreground color of a field cast member.
For a movie that plays back as an applet, specify colors for the
foreColor sprite property as the
decimal equivalent of the 24-bit hexadecimal values used in an HTML document.