MKFONTSCALE(1)
๐ mkfontscale(1) ๐
okay so bestie, welcome to the mkfontscale(1) page from the General Commands Manual โ it's giving "font indexer main character energy" and honestly I'm obsessed. slay, let's get into the font tea. ๐
๐ธ NAME ๐ธ
mkfontscale โ create an index of scalable font files for X
โจ SYNOPSIS โจ
mkfontscale [ -b ] [ -s ] [ -o filename ] [ -x suffix ] [ -a encoding ]
... [ -f fuzz ] [ -l ] [ -e directory ] [ -p prefix ] [ -r prefix ] [ -n
prefix ] [ -u | -U ] [ -v ] [ -- ] [ directory ] ...
๐ฆ DESCRIPTION ๐ฆ
For each directory argument, mkfontscale reads all of the scalable font files in the directory. For every font file found, an X11 font name (XLFD) is generated, and is written together with the file name to a file fonts.scale in the directory. like, it's building the roster, bestie ๐
The resulting fonts.scale file should be checked and possibly manually edited before being used as input for the mkfontdir(1) program. pls look it over first โ the manual says "checked and possibly manually edited," so don't just blindly ship it ๐
๐ OPTIONS ๐
-bโ read bitmap fonts. By default, bitmap fonts are ignored. ๐-sโ ignore scalable fonts. By default, scalable fonts are read. If-bis set, this flag has the side effect of enabling the reading offonts.scalefiles. sneaky little side effect, iykyk.-o filenameโ send program output to filename; default isfonts.scaleif bitmap fonts are not being read, andfonts.dirif they are. If filename is relative, it is created in the directory being processed. If it is the special value-, output is written to standard output. stdout girlies rise ๐ซถ-x suffixโ exclude all files with the specified suffix. bye bye, not in this font directory ๐-a encodingโ add encoding to the list of encodings searched for. adding to the search party ๐-f fuzzโ set the fraction of characters that may be missing in large encodings to fuzz percent. Defaults to2%. fuzz is such a cute name for a threshold ๐ธ-lโ Writefonts.dirfiles suitable for implementations that cannot re-encode legacy fonts (BDF and PCF). By default, it is assumed that the implementation can re-encode Unicode-encoded legacy fonts. legacy font re-encoding tea ๐-edirectory โ specifies a directory with encoding files. Every such directory is scanned for encoding files, the list of which is then written to anencodings.dirfile in every font directory. encoding files getting their own directory era โจ-pprefix โ Specifies a prefix that is prepended to the encoding file path names when they are written to theencodings.dirfile. The prefix is prepended literally: if a/is required between the prefix and the path names, it must be supplied explicitly as part of the prefix. literally literally โ no auto-slash, bestie ๐ญ-rโ Keep non-absolute encoding directories in their relative form when writing theencodings.dirfile. The default is to convert relative encoding directories to absolute directories by prepending the current directory. The positioning of this option is significant, as this option only applies to subsequent-eoptions. order matters, bestie ๐-nโ do not scan for fonts, do not write font directory files. This option is useful when generating encoding directories only. encoding directories only? say less ๐ฆ-u,-Uโ disable (-u) or enable (-U) indexing of ISO 10646:1 font encodings (default: enabled). ISO 10646:1 said bestie rights ๐-v,--versionโ print program version and exit. short and iconic ๐--helpโ print program usage and exit. help is there ๐ซถ--โ end of options. that's a wrap on flags ๐
๐ฅ SEE ALSO ๐ฅ
โญ NOTES โญ
The format of the fonts.scale, fonts.dir and encodings.dir files is documented in the mkfontdir(1) manual page. go read that one too, bestie ๐
โ ๏ธ okay so this is important: Mkfontscale will overwrite any fonts.scale file even if it has been hand-edited. not me forgetting my hand edits ๐
mkfontscale -b -s -l is equivalent to mkfontdir. periodt โจ
๐ AUTHOR ๐
The version of mkfontscale included in this X.Org Foundation release was originally written by Juliusz Chroboczek <jch@freedesktop.org> for the XFree86 project. The functionality of this program was inspired by the ttmkfdir utility by Joerg Pommnitz. icons only, fr fr ๐
okay bye bestie ๐ this page is from X Version 11 and covers mkfontscale 1.2.4; the footer date isn't printed here, so I'm not making one up ๐โจ
๐ฆ where this page comes from
- alpine 3.24: mkfontscale-doc 1.2.4-r0 ยท MIT
- arch rolling: xorg-mkfontscale 1.2.4-2 ยท MIT-open-group AND X11 AND MIT AND HPND-sell-variant
- nixpkgs unstable: mkfontscale 1.2.4
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms