fontconfig/conf.d/48-spacing.conf

26 lines
731 B
Plaintext
Raw Normal View History

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<description>Add mono to the family when no generic name and spacing is 100</description>
<!--
If the font has no generic name and spacing 100, add mono
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<test qual="any" name="spacing" compare="eq">
<int>100</int>
</test>
<edit name="family" mode="append_last">
<string>monospace</string>
</edit>
</match>
</fontconfig>