7

In Kubuntu 12.04 using man fonts.conf i read:

 ~/.fonts.conf is the conventional location for per-user font configuration,
 although the actual location is specified in the global fonts.conf file.

But in /etc/fonts/fonts.conf i cannot find any settings giving me that local conf file path.

I am asking this, because in 12.10 the same command give me:

reading configurations from ~/.fonts.conf is deprecated

So i want to read user font conf file location from the global conf file.

1 Answer 1

9

It should work just fine. The system-wide file that causes your per-user configuration lives in /etc/fonts/conf.d/50-user.conf (actually it's a symlink to a file in conf.avail, but it's its presence in conf.d that makes it work here). Do you have that file?

If you're using 12.10, you'll see in it that the ~/.fonts.conf* locations are deprecated, meaning that support for them will be removed in a future version, so you shouldn't put your configuration there. Put it in $XDG_CONFIG_HOME/fontconfig/fonts.conf instead. On Ubuntu by default $XDG_CONFIG_HOME is ~/.config, so if you haven't changed this (which you probably haven't) the location for you to put your per-user customisation is ~/.config/fontconfig/fonts.conf.

When using 12.04, however, ~/.fonts.conf is the right location as you'll see that 50-user.conf doesn't have the other entries there. You should try to remember to move your configuration to the new location if you upgrade to 12.10, but it should still keep working for this release at least.

Give it a go and let me know how you get on.

1
  • Thanks for the answer. You confirmed my understanding. I think i will not support Ubuntu releases older that 12.10, so i will always delete ~/.fonts.conf and put my version into $XDG_CONFIG_HOME/fontconfig/fonts.conf.
    – warvariuc
    Oct 18, 2012 at 8:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .