Created
March 4, 2017 03:38
-
Star
(105)
You must be signed in to star a gist -
Fork
(20)
You must be signed in to fork a gist
-
-
Save enzinier/8d00d3f37d2e23985dcfa65662d163fa to your computer and use it in GitHub Desktop.
Install font Adobe Source Code Pro on Ubuntu 16.04 LTS
This file contains hidden or 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") |
It is called out in the releases, but many people may want to clone the last non-variable fonts:
⚠️ These .otf fonts CANNOT be installed on Windows or macOS systems because the OSes do not currently support the OpenType-CFF2 format. Install the latest non-variable fonts instead.
Do so by checking out the specific tag:
git checkout 2.030R-ro/1.050R-it -C "$FONT_HOME/adobe-fonts/source-code-pro"
This fixed Emacs, for example.
Thanks for the script !! It works for me very well. (Ubuntu 18.04)
Worked fine for me on Ubuntu 18.04.
Thanks!
Thanks so much. It worked for me using LUbuntu.
Works like expected, thanks for sharing :)
Worked. Thank you.
Also worked for me on Ubuntu 18.04. Thank you!
Worked for me in Ubuntu 19.10. Thank you.
how can i install it
Works on Ubuntu 20.04. Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Great, thanks!