1<?xml version="1.0"?> 2<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> 3<fontconfig> 4 <description>Add sans-serif to the family when no generic name</description> 5<!-- 6 If the font still has no generic name, add sans-serif 7 --> 8 <match target="pattern"> 9 <test qual="all" name="family" compare="not_eq"> 10 <string>sans-serif</string> 11 </test> 12 <test qual="all" name="family" compare="not_eq"> 13 <string>serif</string> 14 </test> 15 <test qual="all" name="family" compare="not_eq"> 16 <string>monospace</string> 17 </test> 18 <edit name="family" mode="append_last"> 19 <string>sans-serif</string> 20 </edit> 21 </match> 22</fontconfig> 23