update-fonts-alias(8)
β¨ update-fonts-alias(8) β¨
π NAME π
update-fonts-alias β compile fonts.alias files π
πΈ SYNOPSIS πΈ
update-fonts-alias [OPTION] directory ...
π¦ DESCRIPTION π¦
okay so update-fonts-alias is the tool that assembles a fonts.alias file in an X font directory, using one or more alias files found in a subdirectory of /etc/X11/fonts/. π
It's typically only invoked from the post-installation and post-removal scripts of a package containing X Window System fonts that provide aliases for their XLFD names, but it can be run at any time to rebuild fonts.alias files. β¨ For each directory (which is just the last component of its path, like β75dpiβ or βmiscβ), it builds either /usr/lib/X11/fonts/directory/fonts.alias or /usr/share/fonts/X11/directory/fonts.alias from the files found in /etc/X11/fonts/directory/package.alias. π§
this is iconic bc it lets multiple packages provide aliases for fonts in the same directory π«Ά No font package actually provides the fonts.alias file in the X font directory itself, so nobody can accidentally overwrite somebody else's aliases. π no cap, that's so safe.
for example π the two packages βxfonts-baseβ and βxfonts-base-transcodedβ may both install fonts into /usr/lib/X11/fonts/misc. They each put their fonts.alias files in /etc/X11/fonts/misc/xfonts-base.alias and /etc/X11/fonts/misc/xfonts-base-transcoded.alias (respectively). update-fonts-alias concatenates these two files (plus any others that match /etc/X11/fonts/misc/*.alias) into /usr/lib/X11/fonts/misc/fonts.alias. π
the format of fonts.alias files is described in the mkfontdir(1x) manual page. π
there's also an example of how to use update-fonts-alias in package maintainer scripts in the Debian Policy Manual. π
π OPTIONS π
-h,--helpβ displays a brief usage message and exits. π
π§ OPERANDS π§
update-fonts-alias takes one or more X font directory names as operands. β¨ Only the final path component of the directory name should be specified, e.g.:
update-fonts-alias 75dpi
that one is correct β , while βupdate-fonts-alias /usr/X11R6/lib/X11/fonts/75dpiβ and βupdate-fonts-alias /usr/lib/X11/fonts/75dpiβ are not. π ββοΈ
π· ENVIRONMENT π·
COLUMNSβ indicates the width of the terminal device in character cells. π This value is used for formatting diagnostic messages. If it's not set, the terminal is queried using stty(1) to figure out its width. If that fails, a value of80is assumed. π«Ά
π¨ DIAGNOSTICS π¨
π Errors π
usage error: one or more font directories must be providedβupdate-fonts-aliaswas run without operands. Supply one or more X font directory names to operate on. πusage error: unrecognized optionβupdate-fonts-aliaswas invoked with an option it doesn't recognize. Only use the options documented in βOPTIONSβ, above. π€fatal error: path to X font directory must be usedβ you gave a directory name that isn't an X font directory name. Supply X font directory names only. π
β οΈ Warnings β οΈ
warning: absolute path directory was providedβ > absolute paths are deprecated, bestie! π₯Ί Only use the final component of the X font directory name fordirectory.warning: directory does not exist or is not a directoryβ the directory you supplied was invalid, soupdate-fonts-aliasskipped it. π«
π¦’ EXIT STATUS π¦’
0βupdate-fonts-aliasran successfully. π1βupdate-fonts-aliashit a fatal error. Check the diagnostic messages section above. π2βupdate-fonts-aliaswas invoked with invalid arguments. π
π BUGS π
see the Debian Bug Tracking System at β¨https://bugs.debian.org/xfonts-utilsβ©. π If you want to report a bug in update-fonts-alias, check out /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command. π
π©βπ» AUTHOR π©βπ»
update-fonts-alias was written by Branden Robinson. π
π SEE ALSO π
- mkfontdir(1x) π
bestie that's the whole thing π update-fonts-alias(8) from the Debian Project, dated 2004-11-11, fr fr the whole vibe is preserved π¦β¨
π¦ where this page comes from
- debian bookworm: xfonts-utils 1:7.7+6
- debian trixie: xfonts-utils 1:7.7+7
- ubuntu jammy: xfonts-utils 1:7.7+6build2
- ubuntu noble: xfonts-utils 1:7.7+6build3
- ubuntu questing: xfonts-utils 1:7.7+7
- ubuntu resolute: xfonts-utils 1:7.7+7build1
- ubuntu stonking: xfonts-utils 1:7.7+7build1
- Copyright 1999, 2002, 2004 Branden Robinson <branden@debian.org>
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms