Default to Fira Sans and JetBrainsCode Nerd Fonts

This commit is contained in:
fanyx 2022-06-09 13:51:30 +02:00
parent 8c3b300da8
commit 62d271966d
1 changed files with 74 additions and 46 deletions

View File

@ -1,50 +1,78 @@
<?xml version='1.0'?> <?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig> <fontconfig>
<dir prefix="xdg">fonts</dir>
<match target="pattern"> <!-- Alias Helvetica and Courier New -->
<test name="family" qual="any"> <alias>
<string>monospace</string> <family>Helvetica</family>
</test> <prefer><family>sans-serif</family></prefer>
<edit name="family" mode="prepend" binding="strong"> </alias>
<string>JetBrains Mono</string> <alias>
</edit> <family>Helvetica Neue</family>
</match> <prefer><family>sans-serif</family></prefer>
<match> </alias>
<test name="family" qual="any"> <alias>
<string>regular</string> <family>Courier New</family>
</test> <prefer><family>monospace</family></prefer>
<edit name="family" mode="prepend" binding="strong"> </alias>
<string>FOT-RodinBokutoh Pro</string> <alias>
</edit> <family>Arial</family>
</match> <prefer><family>sans-serif</family></prefer>
<match> </alias>
<test name="family" qual="any"> <alias>
<string>sans-serif</string> <family>Times New Roman</family>
</test> <prefer><family>serif</family></prefer>
<edit name="family" mode="prepend" binding="strong"> </alias>
<string>FOT-RodinBokutoh Pro</string> <alias>
</edit> <family>Liberation Mono</family>
</match> <prefer><family>monospace</family></prefer>
<match> </alias>
<test name="family" qual="any">
<string>serif</string> <!-- Fuck Helvetica -->
</test> <match>
<edit name="family" mode="prepend" binding="strong"> <test name="family"><string>Helvetica</string></test>
<string>FOT-RodinBokutoh Pro</string> <edit binding="same" mode="assign" name="family">
</edit> <string>Fira Sans</string>
</match> </edit>
<alias> </match>
<family>Helvetica</family>
<prefer> <!-- Set default fonts -->
<family>FOT-RodinBokutoh Pro</family> <match target="pattern">
</prefer> <test name="family" qual="any">
</alias> <string>monospace</string>
<alias> </test>
<family>Liberation Mono</family> <edit name="family" mode="prepend" binding="strong">
<prefer> <string>JetBrainsMono Nerd Font Mono</string>
<family>JetBrains Mono</family> <string>FiraCode Nerd Font Mono</string>
</prefer> </edit>
</alias> </match>
<dir>~/.fonts</dir> <match>
<test name="family" qual="any">
<string>regular</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Fira Sans</string>
<string>FiraCode Nerd Font</string>
</edit>
</match>
<match>
<test name="family" qual="any">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Fira Sans</string>
<string>FiraCode Nerd Font</string>
</edit>
</match>
<match>
<test name="family" qual="any">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Fira Sans</string>
<string>FiraCode Nerd Font</string>
</edit>
</match>
</fontconfig> </fontconfig>