Text SetFontName: Difference between revisions
From MultiCharts
no edit summary
(→Usage) |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
Text_SetFontName 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 | Any font in the ''Fonts'' folder can be used; the folder is accessible from the ''Control Panel'' in Windows operating system. | ||
== Usage == | |||
<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. |