"font"

Sets the font for a frame text.

Synopsis

this.font(string fontType);

setValue(string shape,"font",string fontType);

Parameter

Parameter Description
shape Name of the object
fontType

The font type that should be set. You can find the font string, for example,. by using the function fontSelector() or the tools menu of the script editor.

For example, "Courier New,-1,11,5,50,0,0,0,0,0";

Description

Sets the font for a frame.

Example

The following example sets the font for a frame to arial black and the color to green.

main(bool enter)
{
  string f = "Arial Black,-1,11,5,87,0,0,0,0,0";
  this.color("green");
  this.font(f);
}

Assignment

Frame