g.mkfontcap is a utilty to generate a GRASS font configuration file ("fontcap") containing details of the fonts available on the current system. If Freetype is not installed, the font list will be limited to the set of Hershey stroke fonts supplied with GRASS. With Freetype enabled however, the module will recursively scan all files within a predefined hierarchy to find Freetype-compatible scalable fonts. The list of directories scanned is currently:
/usr/lib/X11/fonts /usr/share/X11/fonts /usr/share/fonts ${HOME}/Library/Fonts /Library/Fonts /System/Library/Fonts ${WINDIR}/Fonts
The module will normally write to the standard fontcap file location, $GISBASE/etc/fontcap. If the environment variable GRASS_FONT_CAP is set, the output will instead be written to the file specified by that variable. This is useful if you don't have permission to modify $GISBASE/etc/fontcap: in this case you can use e.g.
# use local file version instead of system copy GRASS_FONT_CAP=$HOME/.gfontcap export $GRASS_FONT_CAP g.mkfontcap
The output list of fonts is sorted first by type (Stroke fonts first, followed by Freetype) and within each type by the short name of the font.
Last changed: $Date: 2008-03-05 01:48:30 -0800 (Wed, 05 Mar 2008) $
Main index - general index - Full index
© 2003-2008 GRASS Development Team