2006-09-10 06:32:14 +02:00
|
|
|
<?xml version="1.0"?>
|
2020-03-28 15:01:35 +01:00
|
|
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
2006-09-10 06:32:14 +02:00
|
|
|
<fontconfig>
|
2014-03-27 07:10:44 +01:00
|
|
|
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
|
|
|
|
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
|
|
|
|
</its:rules>
|
|
|
|
|
|
|
|
<description>Add sans-serif to the family when no generic name</description>
|
2006-09-10 06:32:14 +02:00
|
|
|
<!--
|
|
|
|
If the font still has no generic name, add sans-serif
|
|
|
|
-->
|
|
|
|
<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>
|
|
|
|
<edit name="family" mode="append_last">
|
|
|
|
<string>sans-serif</string>
|
|
|
|
</edit>
|
|
|
|
</match>
|
|
|
|
</fontconfig>
|