The yes-bitmaps rule makes it impossible to disable any bitmap font on a per-user basis

Bug #110392 reported by Martin Stjernholm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fontconfig (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: fontconfig-config

If I enable the yes-bitmaps rule globally (i.e. fix the /etc/fonts/conf.d/70-yes-bitmaps.conf link) then it's not possible to disable any bitmap font with <rejectfont> elements in the user local ~/.fonts.conf.

It looks like this is due to the fact that <acceptfont> elements (which is used by /etc/fonts/conf.avail/70-yes-bitmaps.conf) always override <rejectfont> (according to fonts.conf(5)), and the user specific settings is given no priority over the system settings.

Ideally user settings should always override system settings regardless of the priority between elements, but a short-term fix seems to be to always avoid <acceptfont> elements in the /etc/fonts/conf.d files. In the case of the 70-yes-bitmaps.conf file, there is no need to specify an <acceptfont> element at all since fonts are accepted by default.

Revision history for this message
Martin Stjernholm (msub) wrote :

Version info: Feisty, fontconfig-config 2.4.2-1ubuntu1

Revision history for this message
Kriston Rehberg (me-kriston) wrote :

See Bug #200713 which proposes a fix to the font configuration file order problem.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta?

Changed in fontconfig:
status: New → Incomplete
Revision history for this message
Martin Stjernholm (msub) wrote :

Again I can only speak for 8.04, but yes, it's still there.

Changed in fontconfig:
status: Incomplete → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

may you please test it with 8.10 or jaunty and give us feedback? thanks in advance.

Changed in fontconfig (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Martin Stjernholm (msub) wrote :

It remains exactly the same in 8.10: User settings cannot override <acceptfont> tags in the system settings, and it's unaffected by order.

What is the reason for having <acceptfont> tags in the system settings when fonts are accepted by default? Afaict the only purpose of <acceptfont> is to explicitly override a <rejectfont> elsewhere.

Revision history for this message
Martin Stjernholm (msub) wrote :

No change in Jaunty.

Changed in fontconfig (Ubuntu):
status: Incomplete → New
Revision history for this message
Vish (vish) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in fontconfig (Ubuntu):
status: New → Incomplete
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? If so, please feel free to mark this bug as new. Thanks!

Revision history for this message
Martin Stjernholm (msub) wrote :

/etc/conf.avail/70-yes-bitmaps.conf is a dummy file containing only an empty fontconfig element in Maverick, so the "short-term" I mentioned in the initial report has been implemented.

Changed in fontconfig (Ubuntu):
status: Incomplete → Fix Released
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.