UPDMAP(1)

okay bestie, buckle up, because this is UPDMAP(1) β€” the manual page for the font-map situation β€” and it's long, so we're doing this in two parts. Part 1 starts now. 🫢

✨ NAME ✨

  • updmap β€” manage TeX font maps
  • updmap-sys β€” manage TeX font maps, system-wide
  • updmap-user β€” manage TeX font maps, per-user

🌈 SYNOPSIS 🌈

updmap [-user|-sys] [OPTION] ... [COMMAND]
updmap-user [OPTION] ... [COMMAND]
updmap-sys [OPTION] ... [COMMAND]

πŸ’– DESCRIPTION πŸ’–

ok so first thing, the version, no cap:

updmap version r65932 (2023-02-19 21:49:48 +0100)

What it does: it updates the default font map files used by pdftex and dvipdfm(x) (pdftex.map), by dvips (psfonts.map), and optionally by pxdvi. And what decides all that? All the configuration files called updmap.cfg β€” usually the ones you get from running kpsewhich --all updmap.cfg, but hold that thought, more below.

Among other things, these map files are what determine which fonts get used as bitmaps and which as outlines, and which font files end up included β€” typically subsetted β€” in the PDF or PostScript output. iconic behaviour honestly.

So updmap-sys (or updmap -sys) is the one that's meant to affect the system-wide configuration, while updmap-user (or updmap -user) only touches personal configuration files, overriding the system files.

🚨 and here's the consequence, bestie, listen: once updmap-user has been run β€” even a single time β€” running updmap-sys no longer has any effect. like, at all. updmap-sys will issue a warning about this, because it is rarely desirable. See <https://tug.org/texlive/scripts-sys-user.html> for the details. πŸ’€

By default, the TeX filename database (ls-R) is also updated.

The updmap system is regrettably complicated, for both inherent and historical reasons. Here's the general overview, bestie:

  • updmap.cfg files are mainly about listing other files, namely the font-specific .maps, in which each line gives information about a different TeX (.tfm) font.
  • updmap reads the updmap.cfg files and then concatenates the contents of those .map files into the main output files: psfonts.map for dvips and pdftex.map for pdftex and dvipdfmx.
  • The updmap.cfg files themselves are created and updated at package installation time β€” by the system installer, or the package manager, or by hand β€” and not (by default) by updmap.

✨ OPTIONS ✨

  • --cnffile FILE β€” read FILE for the updmap configuration (you can give this multiple times, and in that case all the files get used)
  • --dvipdfmxoutputdir DIR β€” specify the output directory (dvipdfm(x) syntax)
  • --dvipsoutputdir DIR β€” specify the output directory (dvips syntax)
  • --pdftexoutputdir DIR β€” specify the output directory (pdftex syntax)
  • --pxdvioutputdir DIR β€” specify the output directory (pxdvi syntax)
  • --outputdir DIR β€” specify the output directory (for all the files, slay)
  • --copy β€” cp generic files rather than using symlinks
  • --force β€” recreate files even if the config hasn't changed
  • --nomkmap β€” do not recreate map files
  • --nohash β€” do not run mktexlsr (a.k.a. texhash)
  • --sys β€” affect system-wide files (equivalent to updmap-sys)
  • --user β€” affect personal files (equivalent to updmap-user)
  • -n, --dry-run β€” only show the configuration, no output
  • --quiet, --silent β€” reduce verbosity

πŸŽ€ Commands πŸŽ€

  • --help β€” show this message and exit
  • --version β€” show version information and exit
  • --showoption OPTION β€” show the current setting of OPTION
  • --showoptions OPTION β€” show possible settings for OPTION
  • --setoption OPTION VALUE β€” set OPTION to value; option names are listed below
  • --setoption OPTION=VALUE β€” same as above, just a different syntax
  • --enable MAPTYPE MAPFILE β€” add "MAPTYPE MAPFILE" to updmap.cfg, where MAPTYPE is Map, MixedMap, or KanjiMap
  • --enable Map=MAPFILE β€” add "Map MAPFILE" to updmap.cfg
  • --enable MixedMap=MAPFILE β€” add "MixedMap MAPFILE" to updmap.cfg
  • --enable KanjiMap=MAPFILE β€” add "KanjiMap MAPFILE" to updmap.cfg
  • --disable MAPFILE β€” disable MAPFILE, of whatever type
  • --listmaps β€” list all maps (details below)
  • --listavailablemaps β€” list available maps (details below)
  • --syncwithtrees β€” disable unavailable map files in updmap.cfg

πŸ¦‹ The main output πŸ¦‹

The main output of updmap is the files containing the individual font map lines which the drivers (dvips, pdftex, etc.) read to handle fonts. it's giving the whole point.

The map files for dvips (psfonts.map) and pdftex and dvipdfmx (pdftex.map) are written to TEXMFVAR/fonts/map/updmap/{dvips,pdftex}/.

In addition, information about Kanji fonts is written to TEXMFVAR/fonts/map/updmap/dvipdfmx/kanjix.map, and optionally to TEXMFVAR/fonts/map/updmap/pxdvi/xdvi-ptex.map. These are for Kanji only and are not like other map files. dvipdfmx reads pdftex.map for the map entries for non-Kanji fonts.

If no option is given β€” so the invocation is just updmap-user or updmap-sys β€” these output files are always recreated.

Otherwise, if an option such as --enable or --disable is given, the output files are recreated if the list of enabled map files (from updmap.cfg) has changed. The --force option overrides this, and always recreates the output files. πŸ’…


🌸 Explanation of the map types 🌸

The normal type is Map.

The only difference between Map and MixedMap is that MixedMap entries are not added to psfonts_pk.map. The purpose is to help users with devices that render Type 1 outline fonts worse than mode-tuned Type 3 bitmap fonts. So, MixedMap is used for fonts that are available as both Type 1 and Metafont.

KanjiMap entries are added to psfonts_t1.map and kanjix.map.


πŸ’œ Explanation of the OPTION names for --showoptions, --showoption, --setoption πŸ’œ

  • dvipsPreferOutline true,false (default true)

Whether dvips uses bitmaps or outlines, when both are available.

  • dvipsDownloadBase35 true,false (default true)

Whether dvips includes the standard 35 PostScript fonts in its output.

  • pdftexDownloadBase14 true,false (default true)

Whether pdftex includes the standard 14 PDF fonts in its output.

  • pxdviUse true,false (default false)

Whether maps for pxdvi (Japanese-patched xdvi) are under updmap's control.

  • jaEmbed (any string)
  • jaVariant (any string)
  • scEmbed (any string)
  • tcEmbed (any string)
  • koEmbed (any string)

See below. πŸ‘€

  • LW35 URWkb,URW,ADOBEkb,ADOBE (default URWkb)

Adapt the font and file names of the standard 35 PostScript fonts.

  • URWkb β€” URW fonts with "berry" filenames (e.g. uhvbo8ac.pfb)
  • URW β€” URW fonts with "vendor" filenames (e.g. n019064l.pfb)
  • ADOBEkb Adobe fonts with "berry" filenames (e.g. phvbo8an.pfb)
  • ADOBE β€” Adobe fonts with "vendor" filenames (e.g. hvnbo___.pfb)

These options are only read and acted on by updmap; dvips, pdftex, etc., do not know anything about them. They work by changing the default map file which the programs read, so they can be overridden by specifying command-line options or configuration files to the programs, as explained at the beginning of updmap.cfg.

The options jaEmbed and jaVariant (formerly kanjiEmbed and kanjiVariant) specify special replacements in the map lines. If a map contains the string @jaEmbed@, then this will be replaced by the value of that option; similarly for jaVariant. In this way, users of Japanese TeX can select different fonts to be included in the final output. The counterpart for Simplified Chinese, Traditional Chinese and Korean fonts are scEmbed, tcEmbed and koEmbed respectively. 🧚

🌍 ENVIRONMENT 🌍

okay bestie, this is the part where we talk about trees and files β€” and yes it's a lot, but stay with me, it's giving lore πŸ’…

Explanation of trees and files normally used

If --cnffile is specified on the command line (and it can be given multiple times, bestie, stack 'em up), then its value(s) is(are) used. Otherwise, updmap reads all the updmap.cfg files found by running:

kpsewhich -all updmap.cfg

...in the order returned by kpsewhich (which is literally the order of trees defined in texmf.cnf). πŸ¦‹

In either case, if multiple updmap.cfg files are found, all the maps mentioned in all the updmap.cfg files are merged. yes, all of them. no cap.

So like β€” if updmap.cfg files are present in all trees, and the default layout is used as shipped with TeX Live, the following files are read, in the given order. πŸ‘‘

For updmap-sys:

TEXMFSYSCONFIG $TEXLIVE/YYYY/texmf-config/web2c/updmap.cfg
TEXMFSYSVAR    $TEXLIVE/YYYY/texmf-var/web2c/updmap.cfg
TEXMFLOCAL     $TEXLIVE/texmf-local/web2c/updmap.cfg
TEXMFDIST      $TEXLIVE/YYYY/texmf-dist/web2c/updmap.cfg

For updmap-user:

TEXMFCONFIG    $HOME/.texliveYYYY/texmf-config/web2c/updmap.cfg
TEXMFVAR       $HOME/.texliveYYYY/texmf-var/web2c/updmap.cfg
TEXMFHOME      $HOME/texmf/web2c/updmap.cfg
TEXMFSYSCONFIG $TEXLIVE/YYYY/texmf-config/web2c/updmap.cfg
TEXMFSYSVAR    $TEXLIVE/YYYY/texmf-var/web2c/updmap.cfg
TEXMFLOCAL     $TEXLIVE/texmf-local/web2c/updmap.cfg
TEXMFDIST      $TEXLIVE/YYYY/texmf-dist/web2c/updmap.cfg

(where YYYY is the TeX Live release version, okay? don't @ me 🌸)

Depending on the actions, updmap might write to one of the given files or create a new updmap.cfg, described further below. ✨

Where and which updmap.cfg changes are saved

When no options are given, the updmap.cfg file(s) are only read, not written. It's when an option --setoption, --enable or --disable is specified that an updmap.cfg needs to be updated. In this case:

  1. If config files are given on the command line, then the first one given is used to save any such changes.
  2. If the config files are taken from kpsewhich output, then the algorithm is more complex (it's giving ✨algorithm✨):
    • 2a) If $TEXMFCONFIG/web2c/updmap.cfg or $TEXMFHOME/web2c/updmap.cfg appears in the list of used files, then the one listed first by kpsewhich --all (equivalently, the one returned by kpsewhich updmap.cfg), is used.
    • 2b) If neither of the above two are present and changes are made, a new config file is created in $TEXMFCONFIG/web2c/updmap.cfg.

In general, the idea is that if the user cannot write to a given config file, a higher-level one can be used. That way, the distribution's settings can be overridden system-wide using TEXMFLOCAL, and system settings can be overridden again in a particular user's TEXMFHOME or TEXMFCONFIG. 🫢

Resolving multiple definitions of a font

If a font is defined in more than one map file, then the definition coming from the first-listed updmap.cfg is used. If a font is defined multiple times within the same map file, one is chosen arbitrarily. In both cases a warning is issued. ⚠️

Disabling maps

updmap.cfg files with higher priority (listed earlier) can disable maps mentioned in lower priority (listed later) updmap.cfg files by writing, e.g.,

#! Map mapname.map

or

#! MixedMap mapname.map

...in the higher-priority updmap.cfg file.

(The #! must be at the beginning of the line, with at least one space or tab afterward, and whitespace between each word on the list.) πŸ‘ˆ don't forget this part, fr fr

As an example, suppose you have a copy of MathTime Pro fonts and want to disable the Belleek version of the fonts; that is, disable the map belleek.map. You can create the file $TEXMFCONFIG/web2c/updmap.cfg with the content

#! Map belleek.map Map mt-plus.map Map mt-yy.map

and call updmap. slay πŸ’…

Listing of maps

The two options --listmaps and --listavailablemaps list all maps defined in any of the updmap.cfg files (for --listmaps), and only those actually found on the system (for --listavailablemaps).

The output format is one line per font map, with the following fields separated by tabs: map, type (Map, MixedMap, KanjiMap), status (enabled, disabled), origin (the updmap.cfg file where it is mentioned, or 'builtin' for the three basic maps).

In the case of --listmaps there can be one additional fields (again separated by tab) containing '(not available)' for those map files that cannot be found. πŸ”

updmap-user vs. updmap-sys

When updmap-sys is run, TEXMFSYSCONFIG and TEXMFSYSVAR are used instead of TEXMFCONFIG and TEXMFVAR, respectively. This is the primary difference between updmap-sys and updmap-user. πŸŽ€

Other locations may be used if you give them on the command line, or these trees don't exist, or you are not using the original TeX Live.

To see the precise locations of the various files that will be read and written, give the -n option (or read the source). 😭 (reading the source is also an option, bestie, we believe in you)


🌈 EXAMPLES 🌈

The log file is written to TEXMFVAR/web2c/updmap.log. πŸ“

For step-by-step instructions on making new fonts known to TeX, read <https://tug.org/fonts/fontinstall.html>. For even more terse instructions, read the beginning of the main updmap.cfg file. πŸ’–


πŸ“ FILES πŸ“

Configuration and input files

  • updmap.cfg β€” Main configuration file. In texmf-dist/web2c by default, but may be located elsewhere depending on your distribution. Each texmf tree read should have its own updmap.cfg. πŸ‘‘
  • dvips35.map β€” Map file for standard 35 PostScript fonts for use with dvips(1).
  • pdftex35.map β€” Map file for standard 35 PostScript fonts for use with pdftex(1).
  • ps2pk35.map β€” Map file for standard 35 PostScript fonts for use with ps2pk(1).

Output files

  • psfonts.map β€” For dvips(1). Same as psfonts_t1.map if option dvipsPreferOutline active, else as psfonts_pk.map.
  • psfonts_pk.map β€” For dvips(1). Without information from MixedMap files. (Setting of dvipsPreferOutline ignored.)
  • psfonts_t1.map β€” For dvips(1). With information from MixedMap files. (Setting of dvipsPreferOutline ignored.)
  • download35.map β€” For dvips(1). Always downloads the standard 35 fonts. (Setting of dvipsDownloadBase35 ignored.)
  • builtin35.map β€” For dvips(1). Never downloads the standard 35 fonts. (Setting of dvipsDownloadBase35 ignored.)
  • pdftex.map β€” For pdftex(1). Same as pdftex_dl14.map if option pdftexDownloadBase14 active, else as pdftex_ndl14.map.
  • pdftex_dl14.map β€” For pdftex(1). Always downloads the standard 14 fonts.
  • pdftex_ndl14.map β€” For pdftex(1). Never downloads the standard 14 fonts.
  • ps2pk.map β€” Similar to psfonts.map file, but forces all fonts to be downloaded, so this map file can be used with xdvi(1) and ps2pk(1). πŸ¦‹

Configuration files for dvips(1)

  • config.builtin35 β€” Loads builtin35.map instead of psfonts.map.
  • config.download35 β€” Loads download35.map instead of psfonts.map.
  • config.outline β€” Loads psfonts_t1.map instead of psfonts.map.
  • config.pdf β€” Loads psfonts_t1.map instead of psfonts.map and has additional settings for PDF generation.
  • config.pk β€” Loads psfonts_pk.map instead of psfonts.map.
  • config.www β€” Loads psfonts_t1.map instead of psfonts.map. (For compatibility with old versions.)
  • config.gstopk β€” Loads psfonts_t1.map instead of psfonts.map.

πŸ› REPORTING BUGS πŸ›

Found something cursed? Report bugs to: tex-live@tug.org πŸ’Œ

TeX Live home page: <https://tug.org/texlive/>


not me writing a whole sign-off but okay: this icon of a manpage is brought to you by TeX Live, dated February 2024, and it's literally named UPDMAP(1). go off, king πŸ‘‘βœ¨πŸ’