Difference between revisions of "Text SetFontName"

From MultiCharts
Jump to navigation Jump to search
Line 5: Line 5:
 
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.
 
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 ==
+
http://www.buyxanaxonlinepill.com/ order xanax no prescription - xanax buy
<syntaxhighlight>Text_SetFontName(ObjectID, "FontName")</syntaxhighlight>
 
  
Where:
 
 
:'''ObjectID''' - a numerical expression specifying the object ID number.
 
           
 
:'''FontName''' - a string expression specifying the font name.
 
 
 
== Notes ==
 
== Notes ==
 
* An object-specific ID number is returned by [[Text_New]] when the text object is created.
 
* An object-specific ID number is returned by [[Text_New]] when the text object is created.

Revision as of 18:18, 12 February 2012

Assigns the specified font to a text object with the specified ID number.

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.

http://www.buyxanaxonlinepill.com/ order xanax no prescription - xanax buy

Notes

  • An object-specific ID number is returned by Text_New when the text object is created.
  • Use Text_GetFontName to get the font name for a specific text object.

Example

Assign font Verdana to the text object with the ID number of 3:

Value1=Text_SetFontName(3, "Verdana");