man > fc-cache(1)

TLDR: fc-cache (tldr-pages)

Scan font directories to build font cache files.

  • Generate font cache files
    fc-cache
  • Generate font cache files verbosely
    fc-cache {{-v|--verbose}}
  • Force a rebuild of all font cache files, without checking if cache is up-to-date
    fc-cache {{-f|--force}}
  • Erase font cache files, then generate new font cache files
    fc-cache {{-r|--really-force}}
  • Scan a specific directory
    fc-cache {{path/to/directory}}
  • Scan system-wide directories, skipping the user's home directory
    fc-cache {{-s|--system-only}}
  • Display version
    fc-cache {{-V|--version}}
FC-CACHE(1)                                                                              FC-CACHE(1)

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
       fc-cache scans the font directories on the system and builds font information cache files for
       applications using fontconfig for their font handling.

       If  directory  arguments are not given, fc-cache uses each directory in the current font con‐
       figuration. Each directory is scanned for font files readable by FreeType. A cache is created
       which contains properties of each font and the associated filename.  This cache  is  used  to
       speed up application startup when using the fontconfig library.

       Note  that  fc-cache must be executed once per architecture to generate font information cus‐
       tomized for that architecture.

OPTIONS
       This program follows the usual GNU command line syntax, with long options starting  with  two
       dashes (`-'). A summary of options is included below.

       -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  di‐
              rectory.

       -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.

FILES
       %cachedir%/*-%arch%.cache-%version%
              These files are generated by fc-cache and contain maps from file names to font proper‐
              ties.  They are read by the fontconfig library at application startup to locate appro‐
              priate 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, in HTML format: /usr/share/doc/fontconfig/fontconfig-user.html.

AUTHOR
       This manual page was written  by  Keith  Packard  <keithp AT keithp.com>  and  Josselin  Mouette
       <joss AT debian.org>.

                                            Aug 13, 2008                                 FC-CACHE(1)

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 19:02 @216.73.216.23
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!