Open In App

fc-cache command in Linux with Examples

The fc-cache command in Linux scans the font directories and build font cache for applications which use fontconfig for their font handling. When no arguments are passed fc-cache scans each directory for font files readable by FreeType. A cache is created which contains properties of each font and the associated file name, this cache is further used to speed up application when using fontconfig library during boot. Synopsis:

fc-cache [ -EfrsvVh ] [ –error-on-no-fonts ] [ –force ] [ –really-force ] [ [ -y dir ] [ –sysroot dir ] ] [ –system-only ] [ –verbose ] [ –version ] [ –help ] [ dir… ]



Options:

Example:



fc-cache -Ev

Note: fc-cache returns zero if cache is successfully generated else non-zero

Article Tags :