×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

Text SetFontName

110 bytes added, 08:43, 9 February 2012
no edit summary
Assigns the specified font to a text object with the specified ID number; returns a value of -2 if the specified object ID number is invalid.
Text_SetFontName returns a value of -2 if the specified object ID number is invalid.  Any font in the [[''Fonts]] '' folder can be used; the folder is accessible from the [[''Control Panel]] '' in Windows XP operating system. In Windows 7, an overview of the installed fonts can be found in the C:\Windows\Fonts folder.
==== Usage ====<syntaxhighlight>Text_SetFontName(ObjectID,"FontName")</syntaxhighlight>  Where:
Where: [['''ObjectID]] ''' - a numerical expression specifying the object ID number .
[[:'''FontName]] ''' - a string expression specifying the font name .
==== Notes ==== * An object-specific ID number is returned by [[Text_New]] when the text object is created.
==== Example ====
Assign font Verdana to the text object with the ID number of 3:
<syntaxhighlight>Value1=Text_SetFontName(3,"Verdana");</syntaxhighlight>
[[Category:Text Drawing]]

Navigation menu