Debian Codegraph @

texk/texlive/tl_support/updmap.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2 .TH UPDMAP "1" "February 2026" "TeX Live" "User Commands"
3 .SH NAME
4 updmap \- manage TeX font maps
5 .br
6 updmap-sys \- manage TeX font maps, system-wide
7 .br
8 updmap-user \- manage TeX font maps, per-user
9 .SH SYNOPSIS
10 .B updmap
11 [\fI\,-user|-sys\/\fR] [\fI\,OPTION\/\fR] ... [\fI\,COMMAND\/\fR]
12 .br
13 .B updmap-user
14 [\fI\,OPTION\/\fR] ... [\fI\,COMMAND\/\fR]
15 .br
16 .B updmap-sys
17 [\fI\,OPTION\/\fR] ... [\fI\,COMMAND\/\fR]
18 .SH DESCRIPTION
19 updmap version r77314 (2026\-01\-09 17:20:28 +0100)
20 .PP
21 Update the default font map files used by pdftex and dvipdfm(x)
22 (pdftex.map), dvips (psfonts.map), and optionally pxdvi, as determined
23 by all configuration files updmap.cfg (usually the ones returned by
24 running "kpsewhich \fB\-\-all\fR updmap.cfg", but see below).
25 .PP
26 Among other things, these map files are used to determine which fonts
27 should be used as bitmaps and which as outlines, and to determine which
28 font files are included, typically subsetted, in the PDF or PostScript output.
29 .PP
30 These maps are for fonts installed within the TeX hierarchy, and are not
31 related to any system font lookups. They are primarily used for Type 1
32 fonts, though a few OpenType and TrueType fonts are involved also.
33 .PP
34 updmap\-sys (or updmap \fB\-sys\fR) is intended to affect the system\-wide
35 configuration, while updmap\-user (or updmap \fB\-user\fR) affects personal
36 configuration files only, overriding the system files.
37 .PP
38 As a consequence, once updmap\-user has been run, even a single time,
39 running updmap\-sys no longer has any effect. updmap\-sys issues a
40 warning about this, since it is rarely desirable.
41 See https://tug.org/texlive/scripts\-sys\-user.html for details.
42 .PP
43 By default, the TeX filename database (ls\-R) is also updated; use
44 \fB\-\-nohash\fR to skip that step.
45 .PP
46 The updmap system is regrettably complicated, for both inherent and
47 historical reasons. A general overview:
48 .PP
49 \- updmap.cfg files are mainly about listing other files, namely the
50 .IP
51 font\-specific .maps, in which each line gives information about a
52 different TeX (.tfm) font.
53 .PP
54 \- updmap reads the updmap.cfg files and then concatenates the
55 .IP
56 contents of those .map files into the main output files, generically
57 named: psfonts.map for dvips, and pdftex.map for pdftex and dvipdfmx.
58 .PP
59 \- The updmap.cfg files themselves are created and updated at package
60 .IP
61 installation time, by the system installer or the package manager or
62 by hand, and not (by default) by updmap.
63 .SH OPTIONS
64 .TP
65 \fB\-\-cnffile\fR FILE
66 read FILE for the updmap configuration
67 (can be given multiple times, in which case
68 all the files are used)
69 .TP
70 \fB\-\-dvipdfmxoutputdir\fR DIR
71 specify output directory (dvipdfm(x) syntax)
72 .TP
73 \fB\-\-dvipsoutputdir\fR DIR
74 specify output directory (dvips syntax)
75 .TP
76 \fB\-\-pdftexoutputdir\fR DIR
77 specify output directory (pdftex syntax)
78 .TP
79 \fB\-\-pxdvioutputdir\fR DIR
80 specify output directory (pxdvi syntax)
81 .TP
82 \fB\-\-outputdir\fR DIR
83 specify output directory (for all files)
84 .TP
85 \fB\-\-[no\-]copy\fR
86 create generic files as copies (default);
87 with \fB\-no\-copy\fR, create symlinks
88 .TP
89 \fB\-\-force\fR
90 recreate files even if config hasn't changed
91 .TP
92 \fB\-\-nomkmap\fR
93 do not recreate map files
94 .TP
95 \fB\-\-nohash\fR
96 do not run mktexlsr (a.k.a. texhash)
97 .TP
98 \fB\-\-sys\fR
99 affect system\-wide files (equivalent to updmap\-sys)
100 .TP
101 \fB\-\-user\fR
102 affect personal files (equivalent to updmap\-user)
103 .TP
104 \fB\-n\fR, \fB\-\-dry\-run\fR
105 only show the configuration, no output
106 .TP
107 \fB\-\-quiet\fR, \fB\-\-silent\fR
108 reduce verbosity
109 .SS "Commands:"
110 .TP
111 \fB\-\-help\fR
112 show this message and exit
113 .TP
114 \fB\-\-version\fR
115 show version information and exit
116 .TP
117 \fB\-\-showoption\fR OPTION
118 show the current setting of OPTION
119 .TP
120 \fB\-\-showoptions\fR OPTION
121 show possible settings for OPTION
122 .TP
123 \fB\-\-setoption\fR OPTION VALUE
124 set OPTION to value; option names below
125 .TP
126 \fB\-\-setoption\fR OPTION=VALUE
127 as above, just different syntax
128 .TP
129 \fB\-\-enable\fR MAPTYPE MAPFILE
130 add "MAPTYPE MAPFILE" to updmap.cfg,
131 where MAPTYPE is Map, MixedMap, or KanjiMap
132 .TP
133 \fB\-\-enable\fR Map=MAPFILE
134 add "Map MAPFILE" to updmap.cfg
135 .TP
136 \fB\-\-enable\fR MixedMap=MAPFILE
137 add "MixedMap MAPFILE" to updmap.cfg
138 .TP
139 \fB\-\-enable\fR KanjiMap=MAPFILE
140 add "KanjiMap MAPFILE" to updmap.cfg
141 .TP
142 \fB\-\-disable\fR MAPFILE
143 disable MAPFILE, of whatever type
144 .TP
145 \fB\-\-listmaps\fR
146 list all maps (details below)
147 .TP
148 \fB\-\-listavailablemaps\fR
149 list available maps (details below)
150 .TP
151 \fB\-\-syncwithtrees\fR
152 disable unavailable map files in updmap.cfg
153 .PP
154 The main output:
155 .IP
156 The main output of updmap is the files containing the individual font
157 map lines which the drivers (dvips, pdftex, etc.) read to handle fonts.
158 .IP
159 The map files for dvips (psfonts.map) and pdftex and dvipdfmx
160 (pdftex.map) are written to TEXMFVAR/fonts/map/updmap/{dvips,pdftex}/.
161 .IP
162 In addition, information about Kanji fonts is written to
163 TEXMFVAR/fonts/map/updmap/dvipdfmx/kanjix.map, and optionally to
164 TEXMFVAR/fonts/map/updmap/pxdvi/xdvi\-ptex.map. These are for Kanji
165 only and are not like other map files. dvipdfmx reads pdftex.map for
166 the map entries for non\-Kanji fonts.
167 .IP
168 If no option is given, so the invocation is just "updmap\-user" or
169 "updmap\-sys", these output files are always recreated.
170 .IP
171 Otherwise, if an option such as \fB\-\-enable\fR or \fB\-\-disable\fR is given, the
172 output files are recreated if the list of enabled map files (from
173 updmap.cfg) has changed. The \fB\-\-force\fR option overrides this,
174 always recreating the output files.
175 .PP
176 Explanation of the map types:
177 .IP
178 The normal type is Map.
179 .IP
180 The only difference between Map and MixedMap is that MixedMap entries
181 are not added to psfonts_pk.map. The purpose is to help users with
182 devices that render Type 1 outline fonts worse than mode\-tuned Type 3
183 bitmap fonts. So, MixedMap is used for fonts that are available as
184 both Type 1 and Metafont.
185 .IP
186 KanjiMap entries are added to psfonts_t1.map and kanjix.map.
187 .PP
188 Explanation of the OPTION names for \fB\-\-showoptions\fR, \fB\-\-showoption\fR, \fB\-\-setoption\fR:
189 .TP
190 dvipsPreferOutline
191 true,false (default true)
192 .IP
193 Whether dvips uses bitmaps or outlines, when both are available.
194 .TP
195 dvipsDownloadBase35
196 true,false (default true)
197 .IP
198 Whether dvips includes the standard 35 PostScript fonts in its output.
199 .TP
200 pdftexDownloadBase14
201 true,false (default true)
202 .IP
203 Whether pdftex includes the standard 14 PDF fonts in its output.
204 .TP
205 pxdviUse
206 true,false (default false)
207 .IP
208 Whether maps for pxdvi (Japanese\-patched xdvi) are under updmap's control.
209 .TP
210 jaEmbed
211 (any string)
212 .TP
213 jaVariant
214 (any string)
215 .TP
216 scEmbed
217 (any string)
218 .TP
219 tcEmbed
220 (any string)
221 .TP
222 koEmbed
223 (any string)
224 .IP
225 See below.
226 .TP
227 LW35
228 URWkb,URW,ADOBEkb,ADOBE (default URWkb)
229 .IP
230 Adapt the font and file names of the standard 35 PostScript fonts.
231 .nf
232 .TP
233 URWkb
234 URW fonts with "berry" filenames (e.g. uhvbo8ac.pfb)
235 .TP
236 URW
237 URW fonts with "vendor" filenames (e.g. n019064l.pfb)
238 .fi
239 .TP
240 ADOBEkb
241 Adobe fonts with "berry" filenames (e.g. phvbo8an.pfb)
242 .TP
243 ADOBE
244 Adobe fonts with "vendor" filenames (e.g. hvnbo___.pfb)
245 .fi
246 .IP
247 These options are only read and acted on by updmap; dvips, pdftex, etc.,
248 do not know anything about them. They work by changing the default map
249 file which the programs read, so they can be overridden by specifying
250 command\-line options or configuration files to the programs, as
251 explained at the beginning of updmap.cfg.
252 .IP
253 The options jaEmbed and jaVariant (formerly kanjiEmbed and kanjiVariant)
254 specify special replacements in the map lines. If a map contains the
255 string @jaEmbed@, then this will be replaced by the value of that option;
256 similarly for jaVariant. In this way, users of Japanese TeX can select
257 different fonts to be included in the final output. The counterpart for
258 Simplified Chinese, Traditional Chinese and Korean fonts are
259 scEmbed, tcEmbed and koEmbed respectively.
260 .SH ENVIRONMENT
261 .PP
262 Explanation of trees and files normally used:
263 .IP
264 If \fB\-\-cnffile\fR is specified on the command line (can be given multiple
265 times), its value(s) is(are) used. Otherwise, updmap reads all the
266 updmap.cfg files found by running `kpsewhich \fB\-all\fR updmap.cfg',
267 in the order returned by kpsewhich (which is the order of trees
268 defined in texmf.cnf).
269 .IP
270 In either case, if multiple updmap.cfg files are found, all the maps
271 mentioned in all the updmap.cfg files are merged.
272 .IP
273 Thus, if updmap.cfg files are present in all trees, and the default
274 layout is used as shipped with TeX Live, the following files are
275 read, in the given order.
276 .nf
277 .IP
278 For updmap\-sys:
279 TEXMFSYSCONFIG \fI\,$TEXLIVE/YYYY/texmf\-config/web2c/updmap.cfg\/\fP
280 TEXMFSYSVAR \fI\,$TEXLIVE/YYYY/texmf\-var/web2c/updmap.cfg\/\fP
281 TEXMFLOCAL \fI\,$TEXLIVE/texmf\-local/web2c/updmap.cfg\/\fP
282 TEXMFDIST \fI\,$TEXLIVE/YYYY/texmf\-dist/web2c/updmap.cfg\/\fP
283 .IP
284 For updmap\-user:
285 TEXMFCONFIG $HOME/.texliveYYYY/texmf\-config/web2c/updmap.cfg
286 TEXMFVAR $HOME/.texliveYYYY/texmf\-var/web2c/updmap.cfg
287 TEXMFHOME \fI\,$HOME/texmf/web2c/updmap.cfg\/\fP
288 TEXMFSYSCONFIG \fI\,$TEXLIVE/YYYY/texmf\-config/web2c/updmap.cfg\/\fP
289 TEXMFSYSVAR \fI\,$TEXLIVE/YYYY/texmf\-var/web2c/updmap.cfg\/\fP
290 TEXMFLOCAL \fI\,$TEXLIVE/texmf\-local/web2c/updmap.cfg\/\fP
291 TEXMFDIST \fI\,$TEXLIVE/YYYY/texmf\-dist/web2c/updmap.cfg\/\fP
292 .IP
293 (where YYYY is the TeX Live release version).
294 .fi
295 .IP
296 According to the actions, updmap might write to one of the given files
297 or create a new updmap.cfg, described further below.
298 .PP
299 Where and which updmap.cfg changes are saved:
300 .IP
301 When no options are given, the updmap.cfg file(s) are only read, not
302 written. It's when an option \fB\-\-setoption\fR, \fB\-\-enable\fR or \fB\-\-disable\fR is
303 specified that an updmap.cfg needs to be updated. In this case:
304 .IP
305 1) If config files are given on the command line, then the first one
306 given is used to save any such changes.
307 .IP
308 2) If the config files are taken from kpsewhich output, then the
309 algorithm is more complex:
310 .IP
311 2a) If \fI\,$TEXMFCONFIG/web2c/updmap.cfg\/\fP or \fI\,$TEXMFHOME/web2c/updmap.cfg\/\fP
312 appears in the list of used files, then the one listed first by
313 kpsewhich \fB\-\-all\fR (equivalently, the one returned by kpsewhich
314 updmap.cfg), is used.
315 .IP
316 2b) If neither of the above two are present and changes are made, a
317 new config file is created in \fI\,$TEXMFCONFIG/web2c/updmap.cfg\/\fP.
318 .IP
319 In general, the idea is that if the user cannot write to a given
320 config file, a higher\-level one can be used. That way, the
321 distribution's settings can be overridden system\-wide using
322 TEXMFLOCAL, and system settings can be overridden again in a
323 particular user's TEXMFHOME or TEXMFCONFIG.
324 .PP
325 Resolving multiple definitions of a font:
326 .IP
327 If a font is defined in more than one map file, then the definition
328 coming from the first\-listed updmap.cfg is used. If a font is
329 defined multiple times within the same map file, one is chosen
330 arbitrarily. In both cases a warning is issued.
331 .PP
332 Disabling maps:
333 .IP
334 updmap.cfg files with higher priority (listed earlier) can disable
335 maps mentioned in lower priority (listed later) updmap.cfg files by
336 writing, e.g.,
337 .IP
338 #! Map mapname.map
339 .IP
340 or
341 .IP
342 #! MixedMap mapname.map
343 .TP
344 in the higher\-priority updmap.cfg file.
345 (The #! must be at the
346 .IP
347 beginning of the line, with at least one space or tab afterward, and
348 whitespace between each word on the list.)
349 .IP
350 As an example, suppose you have a copy of MathTime Pro fonts
351 and want to disable the Belleek version of the fonts; that is,
352 disable the map belleek.map. You can create the file
353 \fI\,$TEXMFCONFIG/web2c/updmap.cfg\/\fP with the content
354 .IP
355 #! Map belleek.map
356 Map mt\-plus.map
357 Map mt\-yy.map
358 .IP
359 and call updmap.
360 .PP
361 Listing of maps:
362 .IP
363 The two options \fB\-\-listmaps\fR and \fB\-\-listavailablemaps\fR list all maps
364 defined in any of the updmap.cfg files (for \fB\-\-listmaps\fR), and
365 only those actually found on the system (for \fB\-\-listavailablemaps\fR).
366 The output format is one line per font map, with the following
367 fields separated by tabs: map, type (Map, MixedMap, KanjiMap),
368 status (enabled, disabled), origin (the updmap.cfg file where
369 it is mentioned, or 'builtin' for the three basic maps).
370 .IP
371 In the case of \fB\-\-listmaps\fR there can be one additional fields
372 (again separated by tab) containing '(not available)' for those
373 map files that cannot be found.
374 .PP
375 updmap\-user vs. updmap\-sys:
376 .IP
377 When updmap\-sys is run, TEXMFSYSCONFIG and TEXMFSYSVAR are used
378 instead of TEXMFCONFIG and TEXMFVAR, respectively. This is the
379 primary difference between updmap\-sys and updmap\-user.
380 .IP
381 Other locations may be used if you give them on the command line, or
382 these trees don't exist, or you are not using the original TeX Live.
383 .PP
384 To see the precise locations of the various files that
385 will be read and written, give the \fB\-n\fR option (or read the source).
386 .SH EXAMPLES
387 .PP
388 The log file is written to TEXMFVAR/web2c/updmap.log.
389 .PP
390 For step\-by\-step instructions on making new fonts known to TeX, read
391 https://tug.org/fonts/fontinstall.html. For even more terse
392 instructions, read the beginning of the main updmap.cfg file.
393 .PP
394 Executable location: ../../../../texk/texlive/../../../../Master/texmf\-dist/scripts/texlive/updmap.pl
395 .SH FILES
396 Configuration and input files:
397 .IP "\fIupdmap\&.cfg\fP"
398 Main configuration file\&. In
399 \fItexmf-dist/web2c\fP by default, but may be located elsewhere
400 depending on your distribution\&. Each texmf tree read should have its
401 own \fIupdmap.cfg\fP.
402 .IP "\fIdvips35\&.map\fP"
403 Map file for standard 35 PostScript fonts for
404 use with \fBdvips\fP(1)\&.
405 .IP "\fIpdftex35\&.map\fP"
406 Map file for standard 35 PostScript fonts for
407 use with \fBpdftex\fP(1)\&.
408 .IP "\fIps2pk35\&.map\fP"
409 Map file for standard 35 PostScript fonts for
410 use with \fBps2pk\fP(1)\&.
411 .PP
412 Output files:
413 .IP "\fIpsfonts\&.map\fP"
414 For \fBdvips\fP(1)\&.
415 Same as \fIpsfonts_t1\&.map\fP if option \fBdvipsPreferOutline\fP active,
416 else as \fIpsfonts_pk\&.map\fP.
417 .IP "\fIpsfonts_pk\&.map\fP"
418 For \fBdvips\fP(1)\&.
419 Without information from MixedMap files\&.
420 (Setting of \fBdvipsPreferOutline\fP ignored\&.)
421 .IP "\fIpsfonts_t1\&.map\fP"
422 For \fBdvips\fP(1)\&.
423 With information from MixedMap files\&.
424 (Setting of \fBdvipsPreferOutline\fP ignored\&.)
425 .IP "\fIdownload35\&.map\fP"
426 For \fBdvips\fP(1)\&.
427 Always downloads the standard 35 fonts\&.
428 (Setting of \fBdvipsDownloadBase35\fP ignored\&.)
429 .IP "\fIbuiltin35\&.map\fP"
430 For \fBdvips\fP(1)\&.
431 Never downloads the standard 35 fonts\&.
432 (Setting of \fBdvipsDownloadBase35\fP ignored\&.)
433 .IP "\fIpdftex\&.map\fP"
434 For \fBpdftex\fP(1)\&.
435 Same as \fIpdftex_dl14\&.map\fP if option \fBpdftexDownloadBase14\fP active,
436 else as \fIpdftex_ndl14\&.map\fP.
437 .IP "\fIpdftex_dl14\&.map\fP"
438 For \fBpdftex\fP(1)\&.
439 Always downloads the standard 14 fonts\&.
440 .IP "\fIpdftex_ndl14\&.map\fP"
441 For \fBpdftex\fP(1)\&.
442 Never downloads the standard 14 fonts\&.
443 .IP "\fIps2pk\&.map\fP"
444 Similar to \fIpsfonts.map\fP file, but
445 forces all fonts to be downloaded, so this map file can be used with
446 \fBxdvi\fP(1) and \fBps2pk\fP(1)\&.
447 .PP
448 Configuration files for \fBdvips\fP(1):
449 .IP "\fIconfig\&.builtin35\fP"
450 Loads \fIbuiltin35\&.map\fP instead
451 of \fIpsfonts\&.map\fP\&.
452 .IP "\fIconfig\&.download35\fP"
453 Loads \fIdownload35\&.map\fP instead
454 of \fIpsfonts\&.map\fP\&.
455 .IP "\fIconfig\&.outline\fP"
456 Loads \fIpsfonts_t1\&.map\fP instead
457 of \fIpsfonts\&.map\fP\&.
458 .IP "\fIconfig\&.pdf\fP"
459 Loads \fIpsfonts_t1\&.map\fP instead
460 of \fIpsfonts\&.map\fP and has additional settings for PDF generation\&.
461 .IP "\fIconfig\&.pk\fP"
462 Loads \fIpsfonts_pk\&.map\fP instead
463 of \fIpsfonts\&.map\fP\&.
464 .IP "\fIconfig\&.www\fP"
465 Loads \fIpsfonts_t1\&.map\fP instead
466 of \fIpsfonts\&.map\fP\&.
467 (For compatibility with old versions\&.)
468 .IP "\fIconfig\&.gstopk\fP"
469 Loads \fIpsfonts_t1\&.map\fP instead
470 of \fIpsfonts\&.map\fP\&.
471 .SH "REPORTING BUGS"
472 Report bugs to: tex\[email protected]
473 .br
474 TeX Live home page: <https://tug.org/texlive/>