better ~/.fonts.conf deprecation warning

Bug #1068549 reported by Julian Taylor
220
This bug affects 49 people
Affects Status Importance Assigned to Milestone
fontconfig (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

if you have ~/fonts.conf and start an application using it you get following warning:

"Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated."

it is not clear from that what it wants you to do. You have to read 50-user.conf and understand it.

The error message should tell you directly to move the configuration to the xdg folders.
attached a patch to do so.

Revision history for this message
Julian Taylor (jtaylor) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fontconfig (Ubuntu):
status: New → Confirmed
Revision history for this message
Thomas Schwinge (tschwinge) wrote :

Julian, that patch is inaccurate in situations (like mine) where it was warned about a ~/.fonts.conf.d directory (that needs to be moved to ~/.config/fontconfig/conf.d.

Revision history for this message
Iain Lane (laney) wrote :

Well, the patch isn't right because those locations are themselves dynamic (also defined in 50-user.conf). If you want to present a more helpful message the right thing to do is to look for ~/ or prefix="xdg" includes that aren't deprecated and present those in the message.

(Unsubscribing sponsors)

Revision history for this message
Tom Chiverton (bugs-launchpad-net-falkensweb) wrote :

Wouldn't the right thing to do be a new fontconfig package that moves any current files from the wrong place to the right place ?

Revision history for this message
Uqbar (uqbar) wrote :

Tom, you are definitely right.
I haven't either installed or configured fontconfig. I got it as the result of some dependency.
So why should I fix something I didn't break?

Revision history for this message
Mikhail Titov (mtitov) wrote :

Note that it is not only about moving but renaming as well (leading dot removal).

Revision history for this message
Adam Funk (a-funk) wrote :

I'm glad I found this bug report. I just upgraded two machines from 12.04 to 12.10 and only one of them was giving the warning, even though they have identical 50-user.conf files. It turns out that one machine has a "~/.fonts.conf" file, which I've moved to "~/.fontconfig/fonts.conf". Strangely, the other one doesn't have "~/.fonts" or "~/.fontconfig/fonts.conf"!

Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :

According to http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
moving ~/.fonts.conf to ~/.config/fontconfig/fonts.conf is right.

Adam, any reference about using ~/.fontconfig/fonts.conf ? http://freedesktop.org/software/fontconfig/fontconfig-user.html does not confirm.

Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :

On my Ubuntu 12.10:

~/.fontconfig is ignored
~/.config/fontconfig (as expected) works

which is not surprising as /etc/fonts/conf.d/50-user.conf contains :

 <include ignore_missing="yes" prefix="xdg">fontconfig/conf.d</include>
 <include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>

but does not mention ~/.fontconfig .

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.