source: trunk/third/tex/xdvi/gsftopk/INSTALL @ 12209

Revision 12209, 4.9 KB checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12208, which included commits to RCS files with non-trunk default branches.
Line 
1                        INSTALLATION INSTRUCTIONS
2
3gsftopk is primarily intended for sites using xdvi and dvips; it allows them
4to use PostScript fonts with xdvi.  While there is nothing to prevent this
5program from being used in other contexts, doing so would be difficult for
6non-expert users.
7
8(If you want to install gsftopk with Karl Berry's kpathsea library, see the
9section "Installation with kpathsea" below.)
10
11To install gsftopk, use the following steps.
12
131.  You _must_ have ghostscript 2.5.2 (or higher) installed on your system.
14
152.  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
193.  Edit the makefile according the instructions provided in the comments.
20
214.  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
285.  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
336.  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
40You 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
49Before running make, run the command
50
51        setenv CC 'cc -systype svr4'
52
53You will also need to edit config.h by hand, since ld(1) does not return
54an error code.  You need to uncomment the line
55
56        /* #define bzero(s, n)  memset((s), 0, (n)) */
57
58*** HP-UX
59
60Run "make hpux" instead of just plain "make" (unless you are using gcc,
61in which case "make CC=gcc" would work).
62
63
64                        INSTALLATION WITH KPATHSEA
65
66Read steps 1 and 2, above.
67
68What follows assumes that the gsftopk directory is installed in the kpathsea
69tools hierarchy: we assume that there is a ../kpathsea directory (as is
70distributed in the xdvi, dvips, or web2c distributions from Karl Berry).
71(You can eventually modify the installation in the top-level build directory
72to automatically build in the gsftopk directory when building the tools.)
73
74Run ./configure in this directory. This will generate a Makefile. Then simply
75type 'make install' to install the program, its manual page, and the render.ps
76file.
77
78Yves Arrouye <Yves.Arrouye@imag.fr>
79
80
81                        NOTES FOR THE EXPERT
82
83With a little extra work it is possible to install gsftopk without having
84installed dvips.  All that is needed is to explain some of the makefile
85variables and to describe the format of the file psfonts.map.
86
87The CONFIGPATH is the directory where psfonts.map is to be stored.  It may
88actually be a colon-separated list of paths, although only the first one
89containing a file named ``psfonts.map'' is useful.
90
91The HEADERDIR is the directory where the ``render.ps'' driver file is to
92be stored; also it is a component of the HEADERPATH.  The HEADERPATH is a
93colon-separated list of directories which are searched for files referenced
94in the ``psfonts.map'' file.
95
96Finally, the file ``psfonts.map'' should provide a information on how to access
97each and every file gsftopk is to be expected to create.  Each line of that
98file describes one font.  Each line consists of one or more fields, separated
99by one or more tabs or spaces.  The first field is mandatory; it gives the
100name by which TeX refers to the file.  Other fields are optional and are
101order 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
116The file may also contain comment lines.  These are blank lines, or lines
117beginning with `;', `#', or `*'.
118
119The following is a very abbreviated sample psfonts.map:
120
121# Comment and blank lines are ignored.
122
123Times-Roman
124rptmr   Times-Roman
125Optima  <Optima.pfb
126Optima-Slanted Optima <Optima.pfb ".1944 SlantFont"
127Optima-Condensed Optima <Optima.pfb ".82 ExtendFont"
128Optima-Extended Optima <Optima.pfb "1.2 ExtendFont"
Note: See TracBrowser for help on using the repository browser.