feat: replace gothic with Lato for readibility

This commit is contained in:
Klesh Wong 2021-08-30 21:59:02 +08:00
parent 88e2dec015
commit 75eefe0927
2 changed files with 49 additions and 0 deletions

View File

@ -72,3 +72,4 @@ sudo ln -sf /etc/fonts/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d
sudo ln -sf /etc/fonts/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d
sudo cp "$DIR/font/freetype2.sh" "/etc/profile.d/freetype2.sh"
sudo cp "$DIR/font/local.conf" "/etc/fonts/local.conf"
lnsf "$DIR/font/fonts.conf" "$XDG_CONFIG_HOME/fonts/fonts.conf"

48
gui/font/fonts.conf Normal file
View File

@ -0,0 +1,48 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Besley</family>
<family>agave Nerd Font</family>
<family>WenQuanYi Micro Hei</family>
<family>Symbola</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Lato</family>
<family>Montserrat</family>
<family>URW Gothic</family>
<family>agave Nerd Font</family>
<family>WenQuanYi Micro Hei</family>
<family>Symbola</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>agave Nerd Font</family>
<family>WenQuanYi Micro Hei</family>
<family>Symbola</family>
</prefer>
</alias>
<match target="pattern">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Lato</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>arial</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>sans-serif</string>
</edit>
</match>
</fontconfig>