d.text
Draws text in the active display frame on the graphics monitor using the current font.
- Provided by: grass-doc (Version: 7.8.7-1)
- Source: grass
- Report a bug
Draws text in the active display frame on the graphics monitor using the current font.
display, cartography
d.text
d.text --help
d.text [-pgbrs] [text=string]
[input=name] [color=string]
[bgcolor=string] [rotation=float]
[linespacing=float] [at=x,y]
[line=integer] [align=string]
[font=string] [size=float]
[path=name] [charset=string] [--help]
[--verbose] [--quiet] [--ui]
d.text draws text in the active display frame on the graphics monitor. Text can be provided through standard input or redirected from a file (using the UNIX redirection mechanism). In addition to the options provided on the command line, colors, text size, font type, rotation angle, and boldness can be adjusted with commands in the standard input (i.e., if the user invokes d.text without options on the command line, and then assigns values to these options on lines within the standard input).
The following command will print the short phrase "This is a test of d.text" in the active display frame using the color yellow, in bold, and using 4/100’ths (4%) of the active frame’s vertical space per line:
d.text text="This is a test of d.text" color=yellow bgcolor=gray size=4
Note that the GRASS command d.title creates map TITLEs in a format suitable for input to d.text.
d.text needs escape sequences that can be used within lines to change colors, boldness, and perhaps size.
d.font
d.title
d.labels
James Westervelt, U.S. Army Construction Engineering Research Laboratory
Updates by Huidae Cho
Available at: d.text source code (history)
Accessed: unknown
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
© 2003-2022 GRASS Development Team, GRASS GIS 7.8.7 Reference Manual