Created
August 14, 2017 17:02
-
-
Save JeremyOttley/c8734096cdca53022df1a28171218aba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo dnf group install "Legacy Fonts" | |
sudo dnf -y install overpass-fonts fontawesome-fonts fontforge | |
# Apple Fonts | |
cd ~/.local/share/fonts | |
wget https://github.com/supermarin/YosemiteSanFranciscoFont/archive/master.zip | |
unzip master -d ~/.local/share/fonts | |
# free | |
sudo dnf -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-24.noarch.rpm | |
sudo dnf -y install freetype-freeworld | |
# Better | |
sudo dnf copr enable dawid/better_fonts | |
sudo dnf -y install fontconfig-enhanced-defaults fontconfig-font-replacements | |
# Fontconfig | |
cat << 'EOF' > /etc/fonts/local.conf | |
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<match target="font"> | |
<edit name="antialias" mode="assign"> | |
<bool>true</bool> | |
</edit> | |
<edit name="autohint" mode="assign"> | |
<bool>false</bool> | |
</edit> | |
<edit name="embeddedbitmap" mode="assign"> | |
<bool>false</bool> | |
</edit> | |
<edit name="hinting" mode="assign"> | |
<bool>true</bool> | |
</edit> | |
<edit name="hintstyle" mode="assign"> | |
<const>hintslight</const> | |
</edit> | |
<edit name="lcdfilter" mode="assign"> | |
<const>lcdlight</const> | |
</edit> | |
<edit name="rgba" mode="assign"> | |
<const>rgb</const> | |
</edit> | |
<edit name="embeddedbitmap" mode="assign"> | |
<bool>false</bool> | |
</edit> | |
</match> | |
</fontconfig> | |
EOF | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment