Macro Command Reference


ftext <tag> <COOR> <x> <y> <font> <font size> <text> [c] [c] [c] [angle] [TEXTALIGN] [ALIGN] [cb] [cb] [cb]

Adds a floating 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.
<COOR>: The coordinate system to which the rectangle belongs.
<x>, <y>: the position of the text in the defined coordinate system.
<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.
[ALIGN] : The text box alignment.
[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).

ALIGN

A parameter wich defines the alignment of different objects, possible values:

topleft
tl
1
topcenter
tc
2
topright
tr
3
centerleft
cl
8
center
c
0
centerright
cr
4
bottomleft
bl
7
bottomcenter
bc
6
bottomright
br
5

TEXTALIGN

A parameter wich defines the alignment of text elements:

left
l
0
center
c
1
right
r
2

COOR

The coordinates system:

0, screenscreen coordinates
1, firstfirst axis (left and bottom)
2, secondsecond axis (right and top)

COLOR

This can be a hexadecimal color definition in the format RGB, ARGB, RRGGBB or AARRGGBB where R is red, G is green, B is blue and A is alpha.

There are also named colors which can be used: black, white, red, green, blue, orange, yellow, magenta, cyan, aluminum, aqua, asparagus, banana, blueberry, bubblegum, cantaloupe, carnation, cayenne, clover, eggplant, fern, flora, grape, honeydew, ice, iron, lavender, lead, lemon, licorice, lime, magnesium, maraschino, maroon, mercury, midnight, mocha, moss, nickel, ocean, orchid, plum, salmon, seafoam, silver, sky, snow, spindrift, spring, steel, strawberry, tangerine, teal, tin, tungsten, turquoise

The Plot default colors can be addressed with the numbers 0-15