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 | (If you want to install gsftopk with Karl Berry's kpathsea library, see the |
---|
9 | section "Installation with kpathsea" below.) |
---|
10 | |
---|
11 | To install gsftopk, use the following steps. |
---|
12 | |
---|
13 | 1. You _must_ have ghostscript 2.5.2 (or higher) installed on your system. |
---|
14 | |
---|
15 | 2. It is recommended that you also have dvips installed; however, expert |
---|
16 | users can read the more detailed instructions at the end of this file |
---|
17 | to find out how to run without dvips. |
---|
18 | |
---|
19 | 3. Edit the makefile according the instructions provided in the comments. |
---|
20 | |
---|
21 | 4. You should now be able to just type "make" and "make install". |
---|
22 | This installs the gsftopk program, but does not yet set up xdvi to use it. |
---|
23 | *** if you are using one of the following platforms, then see the |
---|
24 | notes below. |
---|
25 | MIPS RC/6280 running RISCos 2 |
---|
26 | HP-UX |
---|
27 | |
---|
28 | 5. Edit the paths in xdvimakepk as you would for the MakeTeXPK script |
---|
29 | provided with dvips. Also remember to correctly set the path for the |
---|
30 | psfonts.map file. Install xdvimakepk in an appropriate location |
---|
31 | (probably the same directory as MakeTeXPK). |
---|
32 | |
---|
33 | 6. Recompile xdvi with the flag -DMAKEPKCMD=\"xdvimakepk\" and install it. |
---|
34 | (Specifically, add the above flag to the definition of OPTIONDEFS in the |
---|
35 | Imakefile or Makefile and then "rm font_open.o" and "make" and install |
---|
36 | the binary.) If your .dvi files use the virtual fonts provided with dvips, |
---|
37 | then you should remember to also set the DEFAULT_VF_PATH variable in the |
---|
38 | makefile. |
---|
39 | |
---|
40 | You should now be able to use PostScript fonts with xdvi. |
---|
41 | |
---|
42 | --Paul Vojta, vojta@math.berkeley.edu |
---|
43 | |
---|
44 | |
---|
45 | NOTES FOR SPECIFIC PLATFORMS |
---|
46 | |
---|
47 | *** RISCOS 2 ON MIPS RC/6280 |
---|
48 | |
---|
49 | Before running make, run the command |
---|
50 | |
---|
51 | setenv CC 'cc -systype svr4' |
---|
52 | |
---|
53 | You will also need to edit config.h by hand, since ld(1) does not return |
---|
54 | an error code. You need to uncomment the line |
---|
55 | |
---|
56 | /* #define bzero(s, n) memset((s), 0, (n)) */ |
---|
57 | |
---|
58 | *** HP-UX |
---|
59 | |
---|
60 | Run "make hpux" instead of just plain "make" (unless you are using gcc, |
---|
61 | in which case "make CC=gcc" would work). |
---|
62 | |
---|
63 | |
---|
64 | INSTALLATION WITH KPATHSEA |
---|
65 | |
---|
66 | Read steps 1 and 2, above. |
---|
67 | |
---|
68 | What follows assumes that the gsftopk directory is installed in the kpathsea |
---|
69 | tools hierarchy: we assume that there is a ../kpathsea directory (as is |
---|
70 | distributed in the xdvi, dvips, or web2c distributions from Karl Berry). |
---|
71 | (You can eventually modify the installation in the top-level build directory |
---|
72 | to automatically build in the gsftopk directory when building the tools.) |
---|
73 | |
---|
74 | Run ./configure in this directory. This will generate a Makefile. Then simply |
---|
75 | type 'make install' to install the program, its manual page, and the render.ps |
---|
76 | file. |
---|
77 | |
---|
78 | Yves Arrouye <Yves.Arrouye@imag.fr> |
---|
79 | |
---|
80 | |
---|
81 | NOTES FOR THE EXPERT |
---|
82 | |
---|
83 | With a little extra work it is possible to install gsftopk without having |
---|
84 | installed dvips. All that is needed is to explain some of the makefile |
---|
85 | variables and to describe the format of the file psfonts.map. |
---|
86 | |
---|
87 | The CONFIGPATH is the directory where psfonts.map is to be stored. It may |
---|
88 | actually be a colon-separated list of paths, although only the first one |
---|
89 | containing a file named ``psfonts.map'' is useful. |
---|
90 | |
---|
91 | The HEADERDIR is the directory where the ``render.ps'' driver file is to |
---|
92 | be stored; also it is a component of the HEADERPATH. The HEADERPATH is a |
---|
93 | colon-separated list of directories which are searched for files referenced |
---|
94 | in the ``psfonts.map'' file. |
---|
95 | |
---|
96 | Finally, the file ``psfonts.map'' should provide a information on how to access |
---|
97 | each and every file gsftopk is to be expected to create. Each line of that |
---|
98 | file describes one font. Each line consists of one or more fields, separated |
---|
99 | by one or more tabs or spaces. The first field is mandatory; it gives the |
---|
100 | name by which TeX refers to the file. Other fields are optional and are |
---|
101 | order independent. They are: |
---|
102 | |
---|
103 | o The PS-name of the font. If absent, it is the same as the TeX name. |
---|
104 | |
---|
105 | o The file where the font is located. This field is identified by |
---|
106 | preceding the file name with the character `<'. If absent, it is |
---|
107 | assumed that the font is built-in to ghostscript. |
---|
108 | |
---|
109 | o Special instructions for scaling the font. This field is identified |
---|
110 | by enclosing it in quotes; it may therefore contains spaces. |
---|
111 | The field consists of PostScript instructions for modifying the font. |
---|
112 | Possibilities include "1.2 ExtendFont" to stretch the font horizontally |
---|
113 | by 20%, and ".3 SlantFont" to cause the letters to be slanted at a |
---|
114 | slope of .3. |
---|
115 | |
---|
116 | The file may also contain comment lines. These are blank lines, or lines |
---|
117 | beginning with `;', `#', or `*'. |
---|
118 | |
---|
119 | The following is a very abbreviated sample psfonts.map: |
---|
120 | |
---|
121 | # Comment and blank lines are ignored. |
---|
122 | |
---|
123 | Times-Roman |
---|
124 | rptmr Times-Roman |
---|
125 | Optima <Optima.pfb |
---|
126 | Optima-Slanted Optima <Optima.pfb ".1944 SlantFont" |
---|
127 | Optima-Condensed Optima <Optima.pfb ".82 ExtendFont" |
---|
128 | Optima-Extended Optima <Optima.pfb "1.2 ExtendFont" |
---|