SetInputFont
Script function

world.SetInputFont

DOC_scripting Read about scripting

Type

Method

Summary

Sets the font for the input window

Prototype

void SetInputFont(BSTR FontName, short PointSize, short Weight, boolean Italic);

DOC_data_types View list of data type meanings


Description

Use this to change the command window font. The *entire* window font changes, you cannot change individual lines or words.

Also see SetOutputFont.

The weight can be one of:

(Don't Care) 0
Thin 100
Extralight 200
Light 300
Normal 400
Medium 500
Semibold 600
Bold 700
Extrabold 800
Heavy 900

Italic can be true or false.



VBscript example

world.SetInputFont "Lucida Console", 15, 400, 0



Jscript example

world.SetInputFont("Lucida Console", 15, 400, 0);



PerlScript example

$world->SetInputFont("Lucida Console", 15, 400, 0);



Python example

world.SetInputFont("Lucida Console", 15, 400, 0)



Lua example

SetInputFont("Lucida Console", 15, 400, 0)



Lua notes

The Italic flag is optional, and defaults to false.



Return value

Nothing.




See Also ...

Topic

DOC_options Option setting and retrieval

Functions

FNC_GetAlphaOption GetAlphaOption (Gets the value of an alphanumeric configuration option)
FNC_GetAlphaOptionList GetAlphaOptionList (Gets the list of world alphanumeric options)
FNC_GetCurrentValue GetCurrentValue (Gets the current value of a named world option)
FNC_GetDefaultValue GetDefaultValue (Gets the default value of a named world option)
FNC_GetLoadedValue GetLoadedValue (Gets value of a named world option, as loaded from the world file)
FNC_GetOption GetOption (Gets value of a named world option)
FNC_GetOptionList GetOptionList (Gets the list of world options)
FNC_SetAlphaOption SetAlphaOption (Sets value of a named world alphanumeric option)
FNC_SetOption SetOption (Sets value of a named world option)
FNC_SetOutputFont SetOutputFont (Sets the font for the output window.)

(Help topic: function=SetInputFont)

DOC_contents Documentation contents page