| 1 |
<h2>DESCRIPTION</h2> |
| 2 |
|
| 3 |
<em>d.text</em> draws text in the active display frame on |
| 4 |
the graphics monitor. Text can be provided through |
| 5 |
standard input or redirected from a file (using the UNIX |
| 6 |
redirection mechanism). |
| 7 |
|
| 8 |
In addition to the options provided on the command line, |
| 9 |
colors, text size, font type, rotation angle, and boldness can be adjusted |
| 10 |
with commands in the standard input (i.e., if the user |
| 11 |
invokes <em>d.text</em> without options on the command |
| 12 |
line, and then assigns values to these options on lines |
| 13 |
within the standard input). |
| 14 |
|
| 15 |
<h3>Commands:</h3> |
| 16 |
|
| 17 |
<dl> |
| 18 |
|
| 19 |
<dt><b>.C</b> <em>color</em> |
| 20 |
<dd> |
| 21 |
(where <em>color</em> is one of the available colors) causes text appearing on |
| 22 |
subsequent lines to be drawn in that color. |
| 23 |
|
| 24 |
|
| 25 |
<dt><b>.G</b> <em>color</em> |
| 26 |
<dd> |
| 27 |
(where <em>color</em> is one of the available colors) causes the background of text |
| 28 |
appearing on subsequent lines to be drawn in that color. |
| 29 |
|
| 30 |
<dt><b>.S </b> <em>size</em> |
| 31 |
<dd> |
| 32 |
(where <em>size</em> is a percentage within the range 0 to |
| 33 |
100) adjusts text size. Note that a size of 10 would allow |
| 34 |
10 lines to be drawn in the active display frame, 5 would |
| 35 |
allow the drawing of 20 lines, and 50 would allow the |
| 36 |
drawing of 2 lines. |
| 37 |
|
| 38 |
<p><dt><b>.F</b> <em>font</em> |
| 39 |
<dd> |
| 40 |
(where <em>font</em> is one of the fonts known by the GRASS program |
| 41 |
<em><a href="d.font.html">d.font</a></em>) manipulates |
| 42 |
the font type. Available fonts are listed in the GRASS manual entry for |
| 43 |
<em><a href="d.font.html">d.font</a></em>. |
| 44 |
The default font type used (if unspecified by the user) |
| 45 |
is <em>romans</em>. |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
<dt><b>.R </b> <em>rotation</em> |
| 51 |
<dd> |
| 52 |
(where <em>rotation</em> is an angle in degrees, counter-clockwise) |
| 53 |
to rotate the text. |
| 54 |
|
| 55 |
<dt><b>.B 1</b> |
| 56 |
<dd>stipulates that following text be printed in <b>bold</b>. |
| 57 |
This command means <em>bold on</em>. |
| 58 |
|
| 59 |
<dt><b>.B 0</b> |
| 60 |
<dd> turns <em>bold off</em> of all text appearing on lines beneath |
| 61 |
it. (<em>Bold off</em> is used by default, if unspecified by the user.) |
| 62 |
|
| 63 |
</dl> |
| 64 |
|
| 65 |
<h2>EXAMPLE</h2> |
| 66 |
|
| 67 |
The following command will print the short phrase "This is |
| 68 |
a test of d.text" in the active display frame using the |
| 69 |
color yellow, in bold, and using 4/100'ths (4%) of the |
| 70 |
active frame's vertical space per line: |
| 71 |
<p> |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
<div class="code"><pre> |
| 88 |
d.text text="This is a test of d.text" color=yellow bgcolor=gray size=4 |
| 89 |
</pre></div> |
| 90 |
|
| 91 |
<div align="center" style="margin: 10px"> |
| 92 |
<img src="d_text.png" width="600" border="1"> |
| 93 |
<br> |
| 94 |
<i>Displayed Text</i> |
| 95 |
</div> |
| 96 |
|
| 97 |
<h2>NOTES</h2> |
| 98 |
|
| 99 |
Note that the GRASS command |
| 100 |
<em><a href="d.title.html">d.title</a></em> creates map TITLEs in a format |
| 101 |
suitable for input to <em>d.text</em>. |
| 102 |
|
| 103 |
<p> |
| 104 |
<em>d.text</em> needs escape sequences that can be used |
| 105 |
within lines to change colors, boldness, and perhaps size. |
| 106 |
|
| 107 |
<h2>SEE ALSO</h2> |
| 108 |
|
| 109 |
<em> |
| 110 |
<a href="d.font.html">d.font</a>, |
| 111 |
<a href="d.title.html">d.title</a>, |
| 112 |
<a href="d.labels.html">d.labels</a> |
| 113 |
</em> |
| 114 |
|
| 115 |
<h2>AUTHORS</h2> |
| 116 |
|
| 117 |
James Westervelt, |
| 118 |
U.S. Army Construction Engineering |
| 119 |
Research Laboratory |
| 120 |
<p>Updates by Huidae Cho |