Forked from enzinier/install_font_adobe_source_code_pro.sh
Created
October 31, 2017 20:36
-
-
Save rhymer/20f79e6995d1426276cf9311e08bfd2d to your computer and use it in GitHub Desktop.
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
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/sh | |
# Userland mode (~$USER/), (~/). | |
# ~/.fonts is now deprecated and that | |
#FONT_HOME=~/.fonts | |
# ~/.local/share/fonts should be used instead | |
FONT_HOME=~/.local/share/fonts | |
echo "installing fonts at $PWD to $FONT_HOME" | |
mkdir -p "$FONT_HOME/adobe-fonts/source-code-pro" | |
# find "$FONT_HOME" -iname '*.ttf' -exec echo '{}' \; | |
(git clone \ | |
--branch release \ | |
--depth 1 \ | |
'https://github.com/adobe-fonts/source-code-pro.git' \ | |
"$FONT_HOME/adobe-fonts/source-code-pro" && \ | |
fc-cache -f -v "$FONT_HOME/adobe-fonts/source-code-pro") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment