update-fonts-scale(8)
โจ update-fonts-scale(8) โจ
๐ NAME ๐
okay so update-fonts-scale is the tool that generates fonts.scale files ๐ง
๐ธ SYNOPSIS ๐ธ
update-fonts-scale [OPTION] directory ...
๐ DESCRIPTION ๐
okay bestie, so update-fonts-scale is literally the assembler for a fonts.scale file in an X font directory ๐ฅ it grabs one or more scale files from a subdirectory of /etc/X11/fonts/ and mashes them together. it's usually called from the post-installation and post-removal scripts of a package that has scalable fonts usable by the X Window System, where the X LFD font names aren't inside the font files themselves โจ but you can also run it whenever you want to rebuild fonts.scale files ๐ซถ
for each directory, which is either an absolute path to an X font directory or (preferably) just the last component of its path (like โ75dpiโ or โmiscโ) ๐
it builds either /usr/lib/X11/fonts/directory/fonts.scale or /usr/share/fonts/X11/directory/fonts.scale from the index files found at /etc/X11/fonts/directory/package.scale, where package is the name of the package that installed the fonts ๐
this is the iconic part: multiple packages can provide font names for the same directory ๐ฆ and no font package actually ships the fonts.scale file in the X font directory itself, so there's no danger of one package's font names getting overwritten by another's ๐ no cap, it's so safe
for instance, the two packages โxfonts-scalableโ (real) and โxfonts-niftyโ (hypothetical) may both install fonts into /usr/lib/X11/fonts/Type1 ๐ they each put their fonts.scale files in /etc/X11/fonts/Type1/xfonts-scalable.scale and /etc/X11/fonts/Type1/xfonts-nifty.scale (respectively) ๐ then update-fonts-scale concatenates those two files (plus any others that match /etc/X11/fonts/Type1/*.scale) into /usr/lib/X11/fonts/Type1/fonts.scale ๐
the format for fonts.scale files is documented in the mkfontdir(1x) manual page ๐
and if you want to see how to use update-fonts-scale in package maintainer scripts, there's an example in the Debian Policy Manual ๐
๐ฆ OPTIONS ๐ฆ
-h,--helpโ shows a brief usage message and exits ๐
๐ง OPERANDS ๐ง
update-fonts-scale takes one or more X font directory names as operands, so slay the names you pass in ๐
only the final path component of the directory name should be specified, e.g.
update-fonts-scale 75dpi
that one is correct โจ but โupdate-fonts-scale /usr/X11R6/lib/X11/fonts/75dpiโ and โupdate-fonts-scale /usr/lib/X11/fonts/75dpiโ are NOT it ๐
๐ ENVIRONMENT ๐
COLUMNSโ tells it how wide the terminal is, in character cells ๐ this is used for formatting diagnostic messages ๐ if it isn't set, the terminal gets queried using stty(1) to figure out its width, and if that fails,80is assumed ๐DEBUGโ decides whether low-level diagnostic messages get sent to standard error output ๐ a null (empty) or unset value means they don't, and any non-null value means they do ๐ฅ
๐ธ DIAGNOSTICS ๐ธ
๐ Errors ๐
- usage error: one or more font directories must be provided โ you ran it with no operands ๐ญ give it one or more X font directory names to work on
- usage error: unrecognized option โ you passed an option it doesn't know ๐ only use the options documented in โOPTIONSโ, above
- fatal error: path to X font directory must be used โ you gave it a directory name that isn't an X font directory name ๐ญ only supply X font directory names
โ ๏ธ Warnings โ ๏ธ
warning: absolute path directory was provided Absolute paths are deprecated, so use only the final component of the X font directory name for directory ๐ฅบ
warning: directory does not exist or is not a directory the directory you gave was invalid, so update-fonts-scale skipped it ๐
๐ฎ Notes ๐ฎ
notes only pop up under special circumstances, so check โENVIRONMENTโ above ๐
- note: index references nonexistent font file filename โ the index file
/etc/X11/fonts/directory/package.scalepoints to a font file called filename that doesn't exist ๐ซ this is normal when package has been removed but not purged from the system ๐งน in other situations it probably means there's an error in package ๐
๐ EXIT STATUS ๐
0โupdate-fonts-scaleran successfully ๐1โupdate-fonts-scalehit a fatal error, so check the diagnostic messages section above ๐ญ2โupdate-fonts-scalewas invoked with invalid arguments ๐
๐ BUGS ๐
see the Debian Bug Tracking System โจhttps://bugs.debian.org/xfonts-utilsโฉ ๐ if you want to report a bug in update-fonts-scale, check out /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command ๐
๐ AUTHOR ๐
update-fonts-scale was written by Branden Robinson ๐ซถ
๐ SEE ALSO ๐
- mkfontdir(1x)
Debian Project ยท 2004-11-12 ยท update-fonts-scale(8) ๐ that's the whole manpage, bestie, love you ๐โจ
๐ฆ 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