Lingo Dictionary > D-F > fontSize |  |

fontSize

Syntax

    member(whichCastMember).fontSize
    the fontSize of member whichCastMember

Description

Field cast member property; determines the size of the font used to display the specified field 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.

This property can be tested and set. When tested, it returns the height of the first line in the field. When set, it affects every line in the field.

To see an example of `fontSize` 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 `oldSize` to the current `fontSize of member` setting for the field cast member Rokujo Speaks:

    oldSize = member("Rokujo Speaks").fontSize

Example

This statement sets the third line of the text cast member myMenu to 24 points:

    member("myMenu").fontSize = 12

See also

`alignment`, `font`, `lineHeight (cast member property), text`