Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Xorg fontconfig, there're (at least) two fontcaches, by default /var/cache/fontconfig and ~/.fontconfig, defined in /etc/fonts/fonts.conf.

Q1. But what's the rationale? Only one, the system wide one suffices, no? In my case, there're 69 files in ~/.fontconfig, and 24 of them have identical copies also in /var/cache/fontconfig.

Q2. Is it possible to get rid of ~/.fontconfig? /etc/fonts/fonts.conf is not for writing your personal configuration.

(Q3. Why does X do all as the user root? It should be user X, right? Caches are made by root!)

Thanks in advance.

share|improve this question

Because users can install their own fonts and their own configuration in other directories and don't have permission to write caches for them to the system /var/cache directory.

(fontconfig isn't actually part of X, but a system that sits alongside X to replace the X11 font system with a more modern one that many modern desktop programs use instead of X fonts.)

share|improve this answer
Probably you're right, but all caches in my ~/.fontconfig are for fonts in /usr/share/fonts. This design does not seem reasonable at all. (Many duplicates will exist if there're many users.) – teika kazura Jan 3 '13 at 4:11
You should only end up with caches in ~/.fontconfig for system fonts when the system font caches for those fonts are missing or out-of-date. – alanc Jan 5 '13 at 4:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.