This is the command d.textgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
d.text - Draws text in the active display frame on the graphics monitor using the current
d.text [-pgbrs] [text=string] [size=float] [color=string] [bgcolor=string]
[line=integer] [at=x,y] [align=string] [rotation=float] [linespacing=float]
[font=string] [path=name] [charset=string] [input=name] [--help] [--verbose]
Screen position in pixels ([0,0] is top left)
Screen position in geographic coordinates
Use bold text
Use radians instead of degrees for rotation
Font size is height in pixels
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog
Text to display
Height of letters in percentage of available frame height
Text color, either a standard GRASS color or R:G:B triplet
Text background color, either a standard GRASS color or R:G:B triplet
The screen line number on which text will begin to be drawn
Screen position at which text will begin to be drawn (percentage, [0,0] is lower left)
Options: ll, lc, lr, cl, cc, cr, ul, uc, ur
Rotation angle in degrees (counter-clockwise)
Path to font file
Text encoding (only applicable to TrueType fonts)
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).
(where color is one of the available colors) causes text appearing on subsequent lines
to be drawn in that color.
(where color is one of the available colors) causes the background of text appearing
on subsequent lines to be drawn in that color.
(where size is a percentage within the range 0 to 100) adjusts text size. Note that a
size of 10 would allow 10 lines to be drawn in the active display frame, 5 would allow
the drawing of 20 lines, and 50 would allow the drawing of 2 lines.
(where font is one of the fonts known by the GRASS program d.font) manipulates the
font type. Available fonts are listed in the GRASS manual entry for d.font. The
default font type used (if unspecified by the user) is romans.
(where rotation is an angle in degrees, counter-clockwise) to rotate the text.
stipulates that following text be printed in bold. This command means bold on.
turns bold off of all text appearing on lines beneath it. (Bold off is used by
default, if unspecified by the user.)
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 << EOF
This is a test of d.text
The user presses control-d (the "Ctrl" and "d" keys) to end input to d.text (equal to
Note that the GRASS command d.title creates map TITLEs in a format suitable for input to
d.text needs escape sequences that can be used within lines to change colors, boldness,
and perhaps size.
Use d.textgrass online using onworks.net services