flake/users/guanranwang/home-manager/common/dotfiles/config/fontconfig/conf.d/web-ui-fonts.conf

31 lines
1.2 KiB
XML

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<its:rules version="1.0" xmlns:its="http://www.w3.org/2005/11/its"><its:translateRule selector="/fontconfig/*[not(self::description)]" translate="no"/></its:rules>
<description>trash Font Config 2.0</description>
<!--
https://caniuse.com/extended-system-fonts
GitHub uses this for code blocks.
-->
<match target="pattern">
<test qual="any" name="family"><string>ui-monospace</string></test>
<edit name="family" mode="assign" binding="same"><string>monospace</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>ui-sans-serif</string></test>
<edit name="family" mode="assign" binding="same"><string>sans-serif</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>ui-serif</string></test>
<edit name="family" mode="assign" binding="same"><string>serif</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>-apple-system</string></test>
<edit name="family" mode="assign" binding="same"><string>sans-serif</string></edit>
</match>
</fontconfig>