Skip to content

Instantly share code, notes, and snippets.

@aculich
Last active July 4, 2021 02:03
Show Gist options
  • Select an option

  • Save aculich/b967f97de0461c3dc3158296220ef05c to your computer and use it in GitHub Desktop.

Select an option

Save aculich/b967f97de0461c3dc3158296220ef05c to your computer and use it in GitHub Desktop.
download and install source code pro font for spacemacs

Install Adobe Source Code Pro fonts for Spacemacs

Get latest release from github repo: https://github.com/adobe-fonts/source-code-pro

This assumes you have the gh github package installed. Either for Ubuntu snap install gh or OSX: brew install gh

$ gh release view -R adobe-fonts/source-code-pro --jq '.assets[].url' --json assets | grep TF
https://github.com/adobe-fonts/source-code-pro/releases/download/2.038R-ro/1.058R-it/1.018R-VAR/OTF-source-code-pro-2.038R-ro-1.058R-it.zip
https://github.com/adobe-fonts/source-code-pro/releases/download/2.038R-ro/1.058R-it/1.018R-VAR/TTF-source-code-pro-2.038R-ro-1.058R-it.zip
$ mkdir ~/.fonts; for url in $(gh release view -R adobe-fonts/source-code-pro --jq '.assets[].url' --json assets | grep TF); do file=${url/*\//}; echo $file; (cd /tmp; wget $url); (cd ~/.fonts ; unzip /tmp/$file "*tf" -x __MACOSX/*); done
$ find ~/.fonts -name 'SourceCodePro*'
/home/me/.fonts/SourceCodePro-Medium.otf
/home/me/.fonts/SourceCodePro-ExtraLightIt.ttf
/home/me/.fonts/SourceCodePro-Semibold.ttf
/home/me/.fonts/SourceCodePro-LightIt.ttf
/home/me/.fonts/SourceCodePro-Light.ttf
/home/me/.fonts/SourceCodePro-It.ttf
/home/me/.fonts/SourceCodePro-ExtraLightIt.otf
/home/me/.fonts/SourceCodePro-Semibold.otf
/home/me/.fonts/SourceCodePro-Bold.otf
/home/me/.fonts/SourceCodePro-MediumIt.otf
/home/me/.fonts/SourceCodePro-ExtraLight.otf
/home/me/.fonts/SourceCodePro-Medium.ttf
/home/me/.fonts/SourceCodePro-BlackIt.otf
/home/me/.fonts/SourceCodePro-LightIt.otf
/home/me/.fonts/SourceCodePro-BoldIt.ttf
/home/me/.fonts/SourceCodePro-BlackIt.ttf
/home/me/.fonts/SourceCodePro-ExtraLight.ttf
/home/me/.fonts/SourceCodePro-SemiboldIt.ttf
/home/me/.fonts/SourceCodePro-SemiboldIt.otf
/home/me/.fonts/SourceCodePro-Regular.ttf
/home/me/.fonts/SourceCodePro-Black.ttf
/home/me/.fonts/SourceCodePro-Regular.otf
/home/me/.fonts/SourceCodePro-BoldIt.otf
/home/me/.fonts/SourceCodePro-MediumIt.ttf
/home/me/.fonts/SourceCodePro-Bold.ttf
/home/me/.fonts/SourceCodePro-Black.otf
/home/me/.fonts/SourceCodePro-It.otf
/home/me/.fonts/SourceCodePro-Light.otf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment