Skip to content

Instantly share code, notes, and snippets.

@enzinier
Created March 4, 2017 03:38
Show Gist options
  • Save enzinier/8d00d3f37d2e23985dcfa65662d163fa to your computer and use it in GitHub Desktop.
Save enzinier/8d00d3f37d2e23985dcfa65662d163fa to your computer and use it in GitHub Desktop.
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
#!/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")
@jonicreide
Copy link

jonicreide commented Nov 7, 2018

Thanks for the script !! It works for me very well. (Ubuntu 18.04)

@rproenca
Copy link

Worked fine for me on Ubuntu 18.04.
Thanks!

@smithaitufe
Copy link

Thanks so much. It worked for me using LUbuntu.

@Lerrrtaste
Copy link

Works like expected, thanks for sharing :)

@JoshuaABarnett
Copy link

Worked. Thank you.

@a-y-khan
Copy link

Also worked for me on Ubuntu 18.04. Thank you!

@c0f
Copy link

c0f commented Dec 19, 2019

Worked for me in Ubuntu 19.10. Thank you.

@namthangnguyen
Copy link

how can i install it

@simonherbert
Copy link

Works on Ubuntu 20.04. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment