TEXT (Plot text)

The TEXT command enables you to plot text on the map. The command line gives the text and the sub-command line may optionally be used to set new text characteristics.

Command Syntax:

TEXT refp,xoff,yoff,just,"text string",angle,x2,y2

att,height,width,space,slant,font 

Command Parameters:

refp

Reference point (0 - 11) from which to refer the following offsets.

Default is reference point 1.

xoff,yoff

Point at which to plot text. The default is the current position.

just

Text justification

 

-1

left at xoff,yoff (Default).

 

0

Centered at xoff,yoff.

 

1

Right at xoff,yoff.

 

2

fully centered at xoff,yoff.

 

The following base line justifications require the second base line point to be defined by x2,y2 immediately following the text string:

 

3

left justified on base line

 

4

centered on base line

 

5

right justified on the base line

 

6

fully centered on the base line

 

7

Character width adjusted to fit text on base line

 

8

Character size adjusted to fit text on base line.

"text string"

The string of text to plot. (No default.)

angle

Angle at which to plot the text in degrees counter-clockwise relative to the +X axis. This only applies to point justified text (-1,0,1 or 2).

The default is 0.

x2,y2

The second point of the base line on which to plot the text. This point is only used for base line justified text (3,4,5,6,7 or 8). There is no default.

Sub-Command Parameters:

att

Attribute for text.

height

Character height.

width

Character width.

space

Character spacing.

slant

Slant of the characters in degrees from vertical. The default is the last slant specified.

font

Text font (default is current font). Refer to the FONT command for descriptions of the available fonts.

Example
MDFF m1

TEXT 2,0,4,0,"Map Title"

Plots "Map Title" centered 4 cm. above the bottom center of the map. The default text characteristics are used.

MDFF m1

MGRP map_title,0,0

TEXT 8,-1,-5,8,"Map Title",,1,-5

tt,0.8,,,,tr 

Plots "Map Title" justified to a base below the top centre of the map. Attribute tt is used with a text height of 0.8 cm and font tr (Triplex Roman).

  • This command is part of the MAPPLOT GX.