Comment 3 for bug 1593196

Revision history for this message
Hadmut Danisch (hadmut) wrote :

I tried to fix the problem with a config file

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="scan">
 <test name="family" compare="eq" ignore-blanks="true">
  <string>Swis721 BdRnd BT</string>
 </test>
 <test name="style">
  <string>Bold</string>
 </test>
 <edit name="weight">
  <const>regular</const>
 </edit>
 <edit name="style">
  <const>regular</const>
 </edit>
</match>
</fontconfig>

fc-cache now complains about

Fontconfig warning: "/etc/fonts/conf.d/81-swiss.conf", line 16: saw number, expected string

although there is no number. It fixes the problem for some programs (e.g. gnome-specimen), but not for all (e.g. not libreoffice, which gives the same warning as fc-cache, but does not dinstinguish the fonts).