[Home] [Downloads] [Search] [Help/forum]

SetInputFont

Script function

world.SetInputFont

Read about scripting

Type

Method

Summary

Sets the font for the input window

Prototype

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

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

Option setting and retrieval

Functions

(GetAlphaOption) Gets the value of an alphanumeric configuration option
(GetAlphaOptionList) Gets the list of world alphanumeric options
(GetCurrentValue) Gets the current value of a named world option
(GetDefaultValue) Gets the default value of a named world option
(GetGlobalOption) Gets the value of a global configuration option
(GetGlobalOptionList) Gets the list of global options
(GetLoadedValue) Gets value of a named world option, as loaded from the world file
(GetOption) Gets value of a named world option
(GetOptionList) Gets the list of world options
(SetAlphaOption) Sets value of a named world alphanumeric option
(SetOption) Sets value of a named world option
(SetOutputFont) Sets the font for the output window.

(Help topic: function=SetInputFont)

Documentation contents page


Search ...

Enter a search string to find matching documentation.

Search for:   

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]