Defoma fontconfig backend creates weird fonts.conf

Bug #74054 reported by Sergio Callegari
2
Affects Status Importance Assigned to Milestone
defoma (Ubuntu)
New
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...

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.