Defoma fontconfig backend creates weird fonts.conf

Bug #74051 reported by Sergio Callegari
8
Affects Status Importance Assigned to Milestone
defoma (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Defoma fontconfig backend creates a /var/lib/defoma/fontconfig.d/fonts.conf that gets read by fontconfig as /etc/fonts/conf.d/10-defoma.conf through links.

So far so good.

However entries in /var/lib/defoma/fontconfig.d/fonts.conf are useless

Take the Palatino font, for instance, that is provided through the URW Palladio font. One has entries like:

<alias>
      <family>Palatino-Roman</family>
      <accept><family>URWPalladioL-Roma</family></accept>
</alias>

that tells fontconfig to substitute URWPalladioL-Roma for Palatino-Roman

this is useless... the entry should actually be something like

<alias>
      <family>Palatino</family>
      <accept><family>URW Palladio L</family></accept>
</alias>

The families are "Palatino" and "URW Palladio L"

for fontconfig Roman is the Style of the font. It does not belong to the Family name. There is no such thing as a "URWPalladioL-Roma" font for fontconfig. And in fact if one asks

fc-match "URWPalladioL\-Roma"

the result is invariably

DejaVu-Sans.ttf: "DejaVu Sans" "Book"

same thing with any font, e.g. Avantgarde, etc...

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

Confirmed in 8.04 and 8.10.

Changed in defoma:
status: New → Confirmed
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

defoma is deprecated, nowadays fontconfig is the norm

Changed in defoma (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Sergio Callegari (callegar) wrote :

Yes, this is definitely not relevant anymore

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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