Fontconfig Warning

Fontconfig Warning

README

After an upgrade of Linux Mint Debian Edition I’ve found a little bug in the Font Config package, this warning is shown on almost every Terminal execution, including multimedia streaming, some Gimp plugins and even Zenity has stop working. If you are in the same place as me, probably this little fix will help you to get rid of this annoying warning.

Code

The warning itself is shown as this:

Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 10: Having multiple values in <test> isn't supported and may not work as expected

Taking a look to that file /etc/fonts/conf.d/53-monospace-lcd-filter.conf you will find something like this:

$ cat /etc/fonts/conf.d/53-monospace-lcd-filter.conf
  <xml version="1.0">
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  <-- conf.d/monospace-lcd-filter.conf -->
  <fontconfig>
    <-- Use legacy LCD filter on smaller Monospace fonts -->
    <match target="font">
      <test name="family">
        <string>DejaVu Sans Mono</string>
        <string>Bitstream Vera Sans Mono</string>
      </test>
      <test name="pixelsize" compare="less_eq">
        <double>12.0</double>
      </test>

      <edit name="lcd_filter" mode="assign">
        <const>lcdlegacy</const>
      </edit>
      <edit name="hintstyle" mode="assign">
        <const>hintfull</const>
      </edit>
    </match>
  </fontconfig>

You can fix this just changing this part:

<test name="family">
  <string>DejaVu Sans Mono</string>
  <string>Bitstream Vera Sans Mono</string>
</test>

for this:

<test name="family">
  <string>DejaVu Sans Mono</string>
</test>
<test name="family">
  <string>Bitstream Vera Sans Mono</string>
</test>

Fontconfig Warning 2

Do you have a project idea? Let's make it together!