FC-CACHE(1)
๐ FC-CACHE(1) โ the fc-cache girlies' guide ๐
okay so bestie, you know how your apps be opening and fonts just show up? yeah. this is the little icon behind the curtain making that happen. it's fc-cache from the fontconfig crew, and it's literally out here building font information cache files. no cap. โจ
โจ NAME โจ
fc-cache โ build font information cache files ๐
๐ธ SYNOPSIS ๐ธ
fc-cache [ -EfrsvVh ] [ --error-on-no-fonts ] [ --force ] [ --really-force ] [ [ -y dir ] [ --sysroot dir ] ] [ --system-only ] [ --verbose ] [ --version ] [ --help ] [ dir... ]
๐ฆ DESCRIPTION ๐ฆ
so here's the tea ๐
โ fc-cache scans the font directories on the system and builds font information cache files for applications using fontconfig for their font handling.
if you don't hand it any directory arguments, fc-cache uses each directory in the current font configuration. each directory gets scanned for font files readable by FreeType. then it creates a cache containing properties of each font and the associated filename. that cache is what makes application startup speedy when the app is using the fontconfig library. main character energy fr fr ๐
lowkey important: fc-cache must be executed once per architecture to generate font information customized for that architecture. don't skip this, bestie. ๐ญ
๐ OPTIONS ๐
this program follows the usual GNU command line syntax, with long options starting with two dashes (-). a summary of options is included below. slay:
-Eโ Raise an error if there are no fonts in dir or directories in the configuration if not given.-fโ Force re-generation of apparently up-to-date cache files, overriding the timestamp checking.-rโ Erase all existing cache files and rescan.-sโ Only scan system-wide directories, omitting the places located in the user's home directory.-vโ Display status information while busy.-yโ Prepend dir to all paths for scanning.-hโ Show summary of options.-Vโ Show version of the program and exit.dirโ Directory to scan for fonts.
๐ RETURN CODES ๐
fc-cache returns zero if the caches successfully generated. otherwise non-zero. that's it, that's the whole vibe check. ๐
๐ FILES ๐
%cachedir%/*-%arch%.cache-%version%โ These files are generated byfc-cacheand contain maps from file names to font properties. They are read by the fontconfig library at application startup to locate appropriate fonts.
๐ SEE ALSO ๐
fc-cat(1) fc-list(1) fc-match(1) fc-pattern(1) fc-query(1) fc-scan(1)
The fontconfig user's guide <URL:https://fontconfig.pages.freedesktop.org/fontconfig/fontconfig-user.html>
๐ AUTHOR ๐
This manual page was written by Keith Packard <keithp@keithp.com> and Josselin Mouette <joss@debian.org>.
and that's the whole page, bestie ๐ซถ this one's from the fontconfig source, dated Aug 13, 2008 โ yeah she's an icon, she's been iconic. go build those caches. periodt. ๐ โจ
๐ฆ where this page comes from
- fedora 43: fontconfig 2.17.0-3.fc43 ยท HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig 2.17.0-4.fc44 ยท HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms