This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from caarlos0/newfont
anonymous pro font
- Loading branch information
Showing
6 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#!/bin/sh | ||
URL="https://github.com/chrissimpkins/Hack/releases/download/" | ||
URL="http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip" | ||
|
||
install() { | ||
curl -L -s -o /tmp/hack.tgz "$URL/v2.020/Hack-v2_020-${1}.tar.gz" | ||
tar xzvf /tmp/hack.tgz -C "$2" | ||
curl -L -s -o /tmp/anon.tgz "$URL" | ||
tar xzvf /tmp/anon.tgz -C /tmp | ||
cp /tmp/AnonymousPro-1.002.001/*.ttf "$2" | ||
} | ||
|
||
if [ "$(uname -s)" = "Darwin" ]; then | ||
if which brew >/dev/null 2>&1; then | ||
brew cask install font-hack | ||
brew cask install font-anonymous-pro | ||
else | ||
install "otf" ~/Library/Fonts | ||
install ~/Library/Fonts | ||
fi | ||
else | ||
mkdir -p ~/.fonts | ||
install "ttf" ~/.fonts | ||
install ~/.fonts | ||
fi |
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
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
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
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