Debian Codegraph @

texk/gsftopk/INSTALL

raw
1 INSTALLATION INSTRUCTIONS
2
3 gsftopk is primarily intended for sites using xdvi and dvips; it allows them
4 to use PostScript fonts with xdvi. While there is nothing to prevent this
5 program from being used in other contexts, doing so would be difficult for
6 non-expert users.
7
8 To install gsftopk, use the following steps.
9
10 1. You _must_ have ghostscript 2.5.2 (or higher) installed on your system.
11
12 2. It is recommended that you also have dvips installed; however, expert
13 users can read the more detailed instructions at the end of this file
14 to find out how to run without dvips.
15
16 3. Make sure that the gsftopk directory is installed in the kpathsea
17 tools hierarchy: we assume that there is a ../kpathsea directory (as is
18 distributed in the xdvi, dvips, or web2c distributions from Karl Berry).
19 (If this is the case, then you can modify the installation in the top-level
20 build directory to automatically build in the gsftopk directory when
21 building the tools.)
22
23 4. Run ./configure in this directory. This will generate a Makefile.
24 You may want to set some options when calling this script; see the
25 file ../kpathsea/INSTALL for details. There are no options specific
26 to gsftopk.
27
28 5. Type 'make install' to install the program, its manual page, and the
29 render.ps file.
30
31 You should now be able to use PostScript fonts with xdvi.
32
33 --Paul Vojta, [email protected]
34
35
36 NOTES FOR THE EXPERT
37
38 With a little extra work it is possible to install gsftopk without having
39 installed dvips. All that is needed is to explain some of the makefile
40 variables and to describe the format of the file psfonts.map.
41
42 The CONFIGPATH is the directory where psfonts.map is to be stored. It may
43 actually be a colon-separated list of paths, although only the first one
44 containing a file named ``psfonts.map'' is useful.
45
46 The HEADERDIR is the directory where the ``render.ps'' driver file is to
47 be stored; also it is a component of the HEADERPATH. The HEADERPATH is a
48 colon-separated list of directories which are searched for files referenced
49 in the ``psfonts.map'' file.
50
51 Finally, the file ``psfonts.map'' should provide a information on how to access
52 each and every file gsftopk is to be expected to create. Each line of that
53 file describes one font. Each line consists of one or more fields, separated
54 by one or more tabs or spaces. The first field is mandatory; it gives the
55 name by which TeX refers to the file. Other fields are optional and are
56 order independent. They are:
57
58 o The PS-name of the font. If absent, it is the same as the TeX name.
59
60 o The file where the font is located. This field is identified by
61 preceding the file name with the character `<'. If absent, it is
62 assumed that the font is built-in to ghostscript.
63
64 o Special instructions for scaling the font. This field is identified
65 by enclosing it in quotes; it may therefore contains spaces.
66 The field consists of PostScript instructions for modifying the font.
67 Possibilities include "1.2 ExtendFont" to stretch the font horizontally
68 by 20%, and ".3 SlantFont" to cause the letters to be slanted at a
69 slope of .3.
70
71 The file may also contain comment lines. These are blank lines, or lines
72 beginning with `;', `#', or `*'.
73
74 The following is a very abbreviated sample psfonts.map:
75
76 # Comment and blank lines are ignored.
77
78 Times-Roman
79 rptmr Times-Roman
80 Optima <Optima.pfb
81 Optima-Slanted Optima <Optima.pfb ".1944 SlantFont"
82 Optima-Condensed Optima <Optima.pfb ".82 ExtendFont"
83 Optima-Extended Optima <Optima.pfb "1.2 ExtendFont"