Debian Codegraph @

texk/xdvik/README.t1mapper

raw
1
2 README for t1mapper
3 ===================
4
5 T1mapper is a utility for mapping/copying PostScript(tm) Type1 fonts
6 from various sources (e.g. an existing ghostscript installation) into
7 the texmf source tree to make them available for xdvik.
8
9 The instructions in this README do not apply to users of recent teTeX
10 (teTeX-beta or teTeX >= 1.0) or TeXLive (>= 6b) distributions; these
11 already contain the required fonts within the texmf tree.
12
13 For general information on the use of t1fonts with xdvik, please
14 see the file README.t1fonts.
15
16
17
18 T1mapper is written in Perl, and it should make it rather easy to
19 install type1 fonts in a way such that xdvik can use them. The manual
20 page of t1mapper(1) gives a short command overview, and the following
21 sections describe the font installation in more detail.
22
23 1. Installing the "standard" postscript fonts
24
25 Have gs (ghostscript) version >= 4.x installed (or downloaded and
26 unpacked), including both font packages ('std' and 'other'). If you
27 have gs on your machine already you can check what version you have
28 with the command 'gs -help'; this also tells you where the installed
29 gs stores its fonts. Find the Fontmap file and the fonts. If you
30 can't find them, pretend you don't have them and follow the
31 instructions in the next paragraph.
32
33 If you don't have gs installed you need to get it and and the font
34 packages. A likely source of a recent ghostscript is
35
36 http://sourceforge.net/projects/ghostscript/
37 http://www.gnu.org/software/ghostscript/ghostscript.html
38
39
40 You'll need to download the 2 font directories (`std' and `other')
41 and the source package. From the latter, t1mapper only needs the file
42 'Fontmap' or 'Fontmap.GS'.
43 Install the files somewhere, e.g. to /usr/local/share/ghostscript/fonts.
44 If you wonder about the contents of the Ghostscript font packages, and
45 their relation to the "real" type1 fonts used in printers, please look
46 at the GS docs.
47
48 Decide where to install the font files for xdvi;
49 /usr/local/teTeX/share/texmf/fonts/type1/gs is a likely place. Now
50 run t1mapper (probably as root) to install the fonts:
51
52 t1mapper -lns -gs /usr/local/share/ghostscript/5.50/Fontmap \
53 /usr/local/share/ghostscript/fonts \
54 /usr/local/teTeX/share/texmf/fonts/type1/gs
55
56 Notes:
57 - For the meaning of -lns -gs and other t1mapper options, see below.
58 - If you unpacked the gs packages and installed them by hand, please
59 correct the Fontmap path.
60 - The directory
61 /usr/local/teTeX/share/texmf/fonts/type1/gs
62 will be created if it does not already exist.
63 - With ghostscript >= 6.51, `Fontmap' is only a wrapper for `Fontmap.GS'.
64 Use `Fontmap.GS' instead of `Fontmap' in the invocation of t1mapper.
65
66 In some versions of Linux, such as Red Hat Linux 7.x, the files have
67 been split into two directories. Listing the contents of the gs related
68 font packages reveals that they have been put in both
69 /usr/share/fonts/default/ghostscript and
70 /usr/share/fonts/default/Type1. If you use such a distribution, this
71 might be the commands to use:
72
73 t1mapper -lns -gs /usr/share/ghostscript/5.50/Fontmap \
74 /usr/share/fonts/default/ghostscript \
75 /usr/share/texmf/fonts/type1/gs
76 t1mapper -lns -gs /usr/share/ghostscript/5.50/Fontmap \
77 /usr/share/fonts/default/Type1 \
78 /usr/share/texmf/fonts/type1/gs
79
80 When the command is complete, all the fonts gs knows about will have
81 been copied to /usr/local/teTeX/share/texmf/fonts/type1/gs. This will
82 give you the standard PostScript fonts as well as some others.
83
84 2. Installing Other Postscript Fonts
85
86 If you already have some type1 fonts (other than the ones from
87 ghostscript), you might want to add them as well. Some sites have
88 extensive postscript font collections. All these fonts can be used.
89
90 Additionaly, if you use a machine with a comercial Unix version (such
91 as IRIX, Solaris, AIX, HP-UX, ...) it is quite likely that some type1
92 fonts are installed on the machine. These can be used by ghostscript
93 and xdvi. If you don't know where they are search for filenames such
94 as '*.pfa', '*.pfb', and 'Times-Roman*' and you should be able to find
95 them.
96
97 To add the fonts found on a Solaris machine, use this command:
98
99 t1mapper -lns /usr/local/teTeX/share/texmf/fonts/type1/gs \
100 /usr/openwin/lib/X11/fonts/Type1/*.pfa
101
102 Run the command on all the type1 fonts you want to be able to use in
103 xdvi.
104
105 Notes:
106 - Do not run t1mapper on the TeX type1 fonts (cm* and so on).
107 - Fonts from the `Lucida' family have a rather difficult structure
108 and might be difficult to install. Please see the files xdvi.cfg and
109 lucida.map.
110
111 Copying/linking them all to the same directory will ensure that only
112 one version of each font is available to xdvi. t1mapper will remove
113 any font version already available in the target directory before
114 moving a font there.
115
116 The -lns option will cause t1mapper to symlink the fonts instead of
117 copying them, saving a good deal of disk space. Here's a quick summary
118 of the options that can be used to customize what t1mapper does with
119 the files:
120
121 -cp copy the font files, this is the default and will always work
122 and never break down on you.
123 -ln make hard links, this requires all the fonts to be on the same disk.
124 -lns make symbolic links, this requires that you do not remove the fonts
125 linked, or xdvi will not be able to use them anymore.
126 -lnlns attempt hard-link first, if it fails make symbolic link.
127 -lncp attempt hard-link first, if it fails copy the file. This is a way
128 to save some diskspace if possible, with no risk of files
129 disapearing.
130
131 3. AFM files
132
133 AFM files are not needed by xdvik. TFM files have more accurate width
134 data and *must* be used to get correct alignment.
135
136
137 4a. Standard TeX fonts in postscript version
138
139 If you don't have cmr10.pfb, i.e., the type1 version of the
140 traditional TeX fonts you need to get them from CTAN, e.g.,
141 ftp.tex.ac.uk:/tex-archive/fonts/cm/ps-type1/bluesky/pfb/. Just drop
142 them in a texmf directory, such as fonts/type1/bluesky/cm/. No
143 further configuration should be needed to use these fonts.
144
145 4b. AMS TeX fonts in postscript version
146
147 Additionaly, get
148 /tex-archive/fonts/amsfonts/ps-type1/amsps-unix.tar.gz and install the
149 pfb files in fonts/type1/bluesky/ams.
150
151 4c. More TeX fonts in postscript version
152
153 There are some more type1 fonts in
154 /tex-archive/fonts/cm/ps-type1/bakoma/pfb. As with the bluesky fonts
155 drop them in a directory, such as fonts/type1/bakoma. There is a
156 large overlap between the bakoma and bluesky fonts, you can save some
157 confusion and diskspace by removing the bakoma fonts that have bluesky
158 equivalents.
159
160 (Side note: There are licensing restrictions on the use of the bakoma
161 fonts which might prevent you from using them; one of them being the
162 inclusion in finished documents. However, DVI files are not `finished'
163 documents in this sense, since they don't contain the font shapes
164 themselves; instead, xdvi needs to locate the fonts on disk.)
165
166 If you do not want dvips to use the bakoma fonts, make sure that they are
167 not referenced in any of the dvips fontmaps.
168
169 5. Xdvi config files
170
171 If you did not do 'make install' you will want to copy
172 texk/xdvik/texmf/* from the source distribution into
173 /usr/local/teTeX/share/texmf/xdvi. This copies some important
174 configuration files describing encoding vectors and fonts to xdvi (see
175 above).
176
177 6. Almost finished
178
179 All the font files are now where they should be. If you use a file
180 database it's time to update it. TeTeX users run 'texhash' to obtain
181 this effect.
182
183 Xdvi can now find all the nice files and will not need pk versions of
184 all those fonts.
185
186 If you experience problems, please see the section `Debugging your
187 font setup' in the file README.t1fonts.