d.text.html 3.4 KB

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