I am trying to understand why some of tests in my fonts.conf
work with <match target="pattern">
(the default), another ones with <match target="font">
, and not at all otherwise. For example:
<match>
<test name="family"><string>monospace</string></test>
<edit name="family"><string>Cousine</string></edit>
</match>
<match>
<test name="family"><string>Cousine</string></test>
<test name="pixelsize" compare="more"><double>17.5</double></test>
<edit name="family" binding="strong"><string>Liberation Mono</string></edit>
</match>
<match target="font">
<test name="family"><string>Overpass</string></test>
<edit name="hintstyle"><const>hintslight</const></edit>
</match>
Why is that? I have read the documentation and it only says If 'target' is set to "font" instead of the default "pattern", then this element applies to the font name resulting from a match rather than a font pattern to be matched.
I do not understand the wording, can someone explain the difference?
Best Answer
From:
https://lists.freedesktop.org/archives/fontconfig/2007-December/002787.html
And also from:
https://lists.freedesktop.org/archives/fontconfig/2003-March/000128.html