CentOS: how to fix error: Having multiple in isn’t supported and may not work as expected


If you get error like:

Fontconfig warning: "/opt/libreoffice4.0/share/fonts/truetype/fc_local.conf", line 13: Having multiple <family> in <alias> isn't supported and may not work as expected

See content of file eg: /opt/libreoffice4.0/share/fonts/truetype/fc_local.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "/etc/fonts/conf.d/fonts.dtd">
<fontconfig>

        <!-- Alias similar/metric-compatible families from various sources: -->

        <alias binding="same">
          <family>Liberation Sans Narrow</family>
          <family>Arial Narrow</family>
          <default>
          <family>Arial Narrow</family>
          </default>
        </alias>

<!-- -->
        <alias binding="same">
          <family>Arial Narrow</family>
          <accept>
          <family>Liberation Sans Narrow</family>
          </accept>
        </alias>
<!-- -->

</fontconfig>

You see a list of 2 font names aliased to Arial Narrow. You delete one row. Now code is:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "/etc/fonts/conf.d/fonts.dtd">
<fontconfig>

        <!-- Alias similar/metric-compatible families from various sources: -->

        <alias binding="same">
          <family>Liberation Sans Narrow</family>
           
          <default>
          <family>Arial Narrow</family>
          </default>
        </alias>

<!-- -->
        <alias binding="same">
          <family>Arial Narrow</family>
          <accept>
          <family>Liberation Sans Narrow</family>
          </accept>
        </alias>
<!-- -->

</fontconfig>

Save file, now you won’t see this warning.

1 Comment

Leave a Reply