Debian Codegraph @

texk/xdvik/t1mapper.1

raw
1 .TH t1mapper "1" "15 October 2001"
2 .SH NAME
3 t1mapper \- A tool to help xdvi use all your t1 fonts
4 .SH SYNOPSIS
5 .B t1mapper
6 [\fIOPTIONS\fR] \fITeX-fontdir Type1-font-file-spec\fR
7 .PP
8 .B t1mapper
9 [\fIOPTIONS\fR] -gs \fIGS-fontmap GS-fontdir TeX-fontdir\fR
10 .SH DESCRIPTION
11 .B T1mapper
12 is a utility script written in Perl. It assists you in making
13 new Postscript<tm> Type1 fonts available for use with
14 .BR xdvi .
15 .PP
16 \fINOTE: \fBRunning this utility is only required if your TeX installation
17 doesn't already contain the neccessary .pfb files somewhere in the
18 texmf/ directory hierarchy.\fR
19 .PP
20 The first invocation shown above makes any Type1 font you may have floating around
21 on your system available to
22 .BR xdvi .
23 The second invocation is for hi-jacking fonts from your Ghostscript
24 installation, which will supply
25 .B xdvi
26 with all the standard Type1 fonts it needs.
27 .PP
28 .B T1mapper
29 relies on a installed and working
30 .B texk
31 system to be present. In
32 particular it uses
33 .B kpsewhich
34 to locate the
35 .B fontname
36 package .map files which maps between Postscript<tm> font names and TeX
37 font names.
38 .B teTeX
39 is one such
40 .B texk
41 system.
42 .PP
43 When invoked without the
44 .B -gs
45 option, t1mapper will examine each of the fonts specified. It will
46 attempt to determine the Postscript name of the font by looking inside
47 the font file, and if that name has a TeX equivalent it will copy,
48 link or symlink your the file into the TeX font directory you named
49 first on the command line. The name in the TeX font directory will be
50 according to the TeX/KB-fontname scheme, so that the font names used
51 in
52 .B .dvi
53 files matches the names found in the TeX font directories.
54 .PP
55 When invoked with the
56 .B -gs
57 option
58 .B t1mapper
59 will read the named GS Fontmap file to determine which GS font files
60 correspond to which standard Postscript fonts (GS' version of
61 Times-Roman is not called \fITimes-Roman\fR, it's actually called
62 \fINimbusRomNo9L-Regu\fR), and then proceed to copy or link the files
63 in the named GS font directory into the named TeX font directory.
64 .PP
65 The program's diagnostic output is also written to a logfile
66 .IR t1map.log ,
67 which is created either in the current working directory or in
68 .BR /tmp .
69 .SH OPTIONS
70 All options except
71 .B -gs
72 have to do with how the font files are copied or linked into the TeX
73 font directories:
74 .TP
75 .B -cp
76 Copy the files from the \fIGS-fontdir\fR or matching the
77 \fIType1-font-file-spec\fR into the \fITeX-fontdir\fR. This is the
78 default and will always work.
79 .TP
80 .B -ln
81 Hard link the files. This requires the fonts to reside on the same
82 disk, but it will save space, and the files will not disappear from
83 the \fITeX-fontdir\fR if they are removed from the source directory.
84 .TP
85 .B -lns
86 Symlink the files. This saves space, but if the original files are
87 removed the symlinks will be broken.
88 .TP
89 .B -lnlns
90 Attempt hard-link first, if it fails make symlink.
91 .TP
92 .B -lncp
93 Attempt hard-link first, if that fails, copy the font.
94 .SH EXAMPLES
95 If your Ghostscript is installed in
96 .B /usr/local/share/ghostscript
97 and your TeX
98 lives in
99 .B /usr/local/teTeX
100 then this command will make your GS fonts available to xdvi:
101 .PP
102 .Vb 4
103 \&t1mapper -lns -gs \e
104 \& /usr/local/share/ghostscript/5.50/Fontmap \e
105 \& /usr/local/share/ghostscript/fonts \e
106 \& /usr/local/teTeX/share/texmf/fonts/type1/gs
107 .Ve
108 .PP
109 The first argument here is the full path to the GS Fontmap. The
110 second is the GS font directory, note the lack of wildcards here (as
111 opposed to the next example). The third argument is the TeX font
112 directory. If it does not exist it will be created. Texk and teTeX uses
113 quite finely structured font directories, and the above reflects this.
114 .PP
115 If you have a Solaris machine with Display Postscript fonts then this
116 command will make them available to xdvi:
117 .PP
118 .Vb 4
119 \&t1mapper -lns \e
120 \& /usr/local/teTeX/share/texmf/fonts/type1/gs \e
121 \& /usr/openwin/lib/X11/fonts/Type1/*.pfa
122 .Ve
123 .PP
124 Here the first argument is the TeX font directory and thereafter comes
125 a wildcard that specifies which fonts to examine for copying/linking
126 into the TeX font directory.
127 .SH FILES
128 .B fontname
129 Postscript to TeX name mapping files from
130 .B http://tug.org/fontname/,
131 these are included in teTeX.
132 .PP
133 .B Ghostscript
134 fonts from
135 .B http://sourceforge.net/projects/ghostscript/
136 or
137 .B http://www.gnu.org/software/ghostscript/ghostscript.html
138 .SH SEE ALSO
139 .BR kpsewhich (1),
140 .BR xdvi (1),
141 .BR ln (1),
142 .B README.t1fonts
143 in the source distribution
144 .SH AUTHOR
145 Nicolai Langfeldt for the xdvik project at SourceForge (see
146 .BR http://sourceforge.net/projects/xdvi/ ).