g.mkfontcap.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <h2>DESCRIPTION</h2>
  2. <em>g.mkfontcap</em> is a utilty to generate a GRASS font configuration file
  3. ("fontcap") containing details of the fonts available on the current system.
  4. If <a href="http://freetype.sourceforge.net/">Freetype</a> is not installed,
  5. the font list will be limited to the set of Hershey stroke fonts supplied
  6. with GRASS. With Freetype enabled however, the module will recursively scan
  7. all files within a predefined hierarchy to find Freetype-compatible scalable
  8. fonts. The list of directories scanned is currently:
  9. <div class="code"><pre>
  10. /usr/lib/X11/fonts
  11. /usr/share/X11/fonts
  12. /usr/share/fonts
  13. /usr/local/share/fonts
  14. ${HOME}/Library/Fonts
  15. /Library/Fonts
  16. /System/Library/Fonts
  17. ${WINDIR}/Fonts
  18. </pre></div>
  19. <p>These correspond to directories where fonts can be found on some common
  20. operating systems. Extra directories to search can easily by added using the
  21. <b>extradirs</b> parameter, which accepts a comma-separated list. An extra
  22. directory may optionally contain an environment variable <em>at the start</em>
  23. of the string, if enclosed in ${xxx} syntax (see examples above).
  24. <p>The module will normally write to the standard fontcap file location,
  25. <tt>$GISBASE/etc/fontcap</tt>. If the environment variable
  26. <tt>GRASS_FONT_CAP</tt> is set, the output will instead be written
  27. to the file specified by that variable. This is useful if you don't have
  28. permission to modify <tt>$GISBASE/etc/fontcap</tt>: in this case you can
  29. use e.g.
  30. <div class="code"><pre>
  31. # use local file version instead of system copy
  32. GRASS_FONT_CAP=$HOME/.gfontcap
  33. export GRASS_FONT_CAP
  34. g.mkfontcap
  35. </pre></div>
  36. <p>to create a personal copy and then to make GRASS use that file
  37. instead of the system copy.
  38. <p>The output list of fonts is sorted first by type (Stroke fonts first,
  39. followed by Freetype) and within each type by the short name of the font.
  40. <h2>SEE ALSO</h2>
  41. <em>
  42. <a href="d.font.html">d.font</a>
  43. </em>
  44. <h2>AUTHOR</h2>
  45. Paul Kelly