~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to general/g.mkfontcap/description.html

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<h2>DESCRIPTION</h2>
2
 
 
3
 
<p>
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>
12
 
    /usr/lib/X11/fonts
13
 
    /usr/share/X11/fonts
14
 
    /usr/share/fonts
15
 
    /usr/local/share/fonts
16
 
    ${HOME}/Library/Fonts
17
 
    /Library/Fonts
18
 
    /System/Library/Fonts
19
 
    ${WINDIR}/Fonts
20
 
</pre></div>
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).
26
 
 
27
 
<p>
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
33
 
use e.g.
34
 
 
35
 
<div class="code"><pre>
36
 
# use local file version instead of system copy
37
 
GRASS_FONT_CAP=$HOME/.gfontcap
38
 
export GRASS_FONT_CAP
39
 
 
40
 
g.mkfontcap
41
 
</pre></div>
42
 
 
43
 
to create a personal copy and then to make GRASS use that file
44
 
instead of the system copy.
45
 
 
46
 
<p>
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.
49
 
 
50
 
<h2>SEE ALSO</h2>
51
 
 
52
 
<em><a href="d.font.html">d.font</a></em>
53
 
 
54
 
<h2>AUTHOR</h2>
55
 
 
56
 
Paul Kelly
57
 
 
58
 
<p><i>Last changed: $Date: 2013-09-14 07:17:25 +0200 (Sat, 14 Sep 2013) $</i>