4
<em>g.mkfontcap</em> is a utilty to generate a GRASS font configuration file
5
("fontcap") containing details of the fonts available on the current system.
6
If <a href="http://freetype.sourceforge.net/">Freetype</a> is not installed,
7
the font list will be limited to the set of Hershey stroke fonts supplied
8
with GRASS. With Freetype enabled however, the module will recursively scan
9
all files within a predefined hierarchy to find Freetype-compatible scalable
10
fonts. The list of directories scanned is currently:
11
<div class="code"><pre>
15
/usr/local/share/fonts
21
These correspond to directories where fonts can be found on some common
22
operating systems. Extra directories to search can easily by added using the
23
<em>extradirs</em> parameter, which accepts a comma-separated list. An extra
24
directory may optionally contain an environment variable <em>at the start</em>
25
of the string, if enclosed in ${xxx} syntax (see examples above).
28
The module will normally write to the standard fontcap file location,
29
<tt>$GISBASE/etc/fontcap</tt>. If the environment variable
30
<strong>GRASS_FONT_CAP</strong> is set, the output will instead be written
31
to the file specified by that variable. This is useful if you don't have
32
permission to modify <tt>$GISBASE/etc/fontcap</tt>: in this case you can
35
<div class="code"><pre>
36
# use local file version instead of system copy
37
GRASS_FONT_CAP=$HOME/.gfontcap
43
to create a personal copy and then to make GRASS use that file
44
instead of the system copy.
47
The output list of fonts is sorted first by type (Stroke fonts first,
48
followed by Freetype) and within each type by the short name of the font.
52
<em><a href="d.font.html">d.font</a></em>
58
<p><i>Last changed: $Date: 2013-09-14 07:17:25 +0200 (Sat, 14 Sep 2013) $</i>