Macro Command Reference
text <tag> <x> <y> <font> <font size> <text> [c] [c] [c] [angle] [TEXTALIGN] [AUTOTEXTPOS] [offset] [cb] [cb] [cb]
Adds a text label to the document.
<tag>
: The tag
argument should be an integer value which can be used later to address a graphic or text object. Interactively created text or graphic objects always have the tag 0.
<x>
, <y>
: the position in screen coordinates of the text.
<font>
: The font for the text (e.g. Helvetica-Bold)
<font size>
: The font size of the text.
[c] [c] [c]
: The color of the text. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command colormode
(0=RGB, 1=HSB).
[angle]
: The text angle.
[TEXTALIGN]
: The text alignment.
[AUTOTEXTPOS]
: The position for automatically positioned text label.
[offset]
: Offset for automatically positioned text label.
[cb] [cb] [cb]
: The color of the text background. Dependent on the color mode the three values are RGB or HSB values from 0.0 to 1.0. The color mode can be set with the command colormode
(0=RGB, 1=HSB).
AUTOTEXTPOS
A parameter wich defines the alignment of different objects, possible values:
outsidetopleft | outsidetopcenter | outsidetopright | ||
outsidelefttop | topleft | topcenter | topright | outsiderighttop |
outsideleftcenter | centerleft | center | centerright | outsiderightcenter |
outsideleftbottom | bottomleft | bottomcenter | bottomright | outsiderightbottom |
outsidebottomleft | outsidebottomcenter | outsidebottomright |
TEXTALIGN
A parameter wich defines the alignment of text elements:
left | center | right |