better ~/.fonts.conf deprecation warning

Bug #1068549 reported by Julian Taylor on 2012-10-19
This bug affects 49 people
Affects Status Importance Assigned to Milestone
fontconfig (Ubuntu)

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.

Julian Taylor (jtaylor) wrote :
Launchpad Janitor (janitor) wrote :

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

Changed in fontconfig (Ubuntu):
status: New → Confirmed
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.

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)

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 ?

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?

Mikhail Titov (mtitov) wrote :

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

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"!

According to
moving ~/.fonts.conf to ~/.config/fontconfig/fonts.conf is right.

Adam, any reference about using ~/.fontconfig/fonts.conf ? does not confirm.

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  Edit
Everyone can see this information.

Other bug subscribers