Navigation:  Programmer's Reference > Executing DPlot commands from another application >

TextFont macro command

Print this Topic Previous pageReturn to chapter overviewNext page

Macro commands may be used either in macros or by sending the commands to DPlot via dynamic data exchange (DDE). Some commands are valid only in macros (noted by Macros Only). Commands sent to DPlot via DDE must be enclosed by square brackets [     ]. Macro commands should not include the brackets.

Command parameters shown in the descriptions below are placeholders for the actual values. Command parameters are either numeric values, equations that evaluate to numbers, or character strings. Character string parameters are always bound by double quotation marks. Equations must be preceded by an equals sign (=).

All indices into arrays are 1-based, e.g. Curve1=1 refers to the first curve in a plot.

A 0x prefix for numbers in the descriptions below indicates hexadecimal notation; e.g. 0x0010 = 16.

JR/Viewer indicates that the command is supported by DPlot Jr or DPlot Viewer.
JR/Viewer indicates that the command is NOT supported by DPlot Jr or DPlot Viewer.


 

[TextFont(Index,Points,Weight,Italic,R,G,B,"Face")]

JR   Viewer

Sets various parameters for one of the six fonts used by DPlot. Index should be one of the following:

1

Numbers along the axes

2

First title line

3

Second and third title lines

4

X axis label

5

Y axis label(s)

6

Legend

7

Note(s)

8

Z axis label

Points is the size of the font, where 1 point = 1/72 inch. Weight is a number between 100 for "thin" and 900 for "heavy" or 0 for "don't care", in which case Windows picks the font weight. Normal text has a weight of 400, bold text has a weight of 700. Not all font weights are available for all possible fonts... Windows selects the closest weight available. Italic is 1 for italics, 0 otherwise. R,G,B are the red, green, and blue components used in the font color, ranging from 0 to 255 (R,G,B = 0,0,0 corresponds to black). "Face" is the font's face name,e.g. "Arial" or "Times New Roman".

All parameters other than Index are optional. For example, the following sets the color of the first title line to red and leaves all other parameters at their current values:

[TextFont(2,,,,255,0,0)]

 

 


Page url: http://www.dplot.com/help/index.htm?textfontcommand.htm