[macOS General] プログラミング用フォント「Ricty」を Homebrew で導入する
Rictyをインストールしました。
 
 [markdown]
ライセンスの問題でフォントの配布は行われておらず、本来はスクリプトから生成する必要があります。
 この手順をまとめた formula をありがたく使わせて頂きました。
> * [プログラミング用フォント Ricty](http://save.sys.t.u-tokyo.ac.jp/~yusa/fonts/ricty.html)
 > * [brew install ricty | 實松アウトプット](http://sanematsu.wordpress.com/2013/05/11/brew-install-ricty/)
brew tap でフォントを生成します。
“`
 % brew tap sanemat/font
 Cloning into ‘/usr/local/Library/Taps/sanemat-font’…
 remote: Counting objects: 72, done.
 remote: Compressing objects: 100% (52/52), done.
 remote: Total 72 (delta 23), reused 58 (delta 18)
 Unpacking objects: 100% (72/72), done.
 Checking connectivity… done
 Tapped 1 formula
 % brew install ricty
 # 省略
 ***************************************************
 Generated files:
 /usr/local/Cellar/ricty/3.2.2/share/fonts/Ricty-Bold.ttf
 /usr/local/Cellar/ricty/3.2.2/share/fonts/Ricty-Regular.ttf
 /usr/local/Cellar/ricty/3.2.2/share/fonts/RictyDiscord-Bold.ttf
 /usr/local/Cellar/ricty/3.2.2/share/fonts/RictyDiscord-Regular.ttf
 ***************************************************
 To install Ricty:
 $ cp -f /usr/local/Cellar/ricty/3.2.2/share/fonts/Ricty*.ttf ~/Library/Fonts/
 $ fc-cache -vf
 ***************************************************
 “`
最後のあたりに表示される説明手順に従い、フォントフォルダーへコピーします。
“`
 % cp -f /usr/local/Cellar/ricty/3.2.2/share/fonts/Ricty*.ttf ~/Library/Fonts/
 % fc-cache -vf
 /usr/share/fonts: skipping, no such directory
 /Library/Fonts:
 caching, new cache contents: 495 fonts, 1 dirs
 /Library/Fonts/Microsoft:
 caching, new cache contents: 196 fonts, 0 dirs
 /Users/***/Library/Fonts:
 caching, new cache contents: 31 fonts, 0 dirs
 /Users/***/.local/share/fonts: skipping, no such directory
 /Users/***/.fonts: skipping, no such directory
 /usr/local/Cellar/fontconfig/2.10.93/var/cache/fontconfig: cleaning cache directory
 /Users/***/.cache/fontconfig: not cleaning non-existent cache directory
 /Users/***/.fontconfig: not cleaning non-existent cache directory
 fc-cache: succeeded
 “`
あとはターミナルで、フォントとアンチエイリアスを指定します。
## 補遺
`brew info` の情報を利用してシェルスクリプトでインストールされていて、勉強になりました。
> * [[Ricty][Mac] HomebrewでRicty Powerline フォントをインストールする — yukimemi’s blog](http://yukimemi.bitbucket.org/blog/html/2013/09/14/ricty_powerline_install.html)
 > * [変数を使用する – UNIX & Linux コマンド・シェルスクリプト リファレンス](http://shellscript.sunone.me/variable.html)
 > * [[UNIXコマンド] eval教えて下さい。 – その他(OS) – 教えて!goo](http://oshiete.goo.ne.jp/qa/560341.html)
 Migu 1M の代替フォントで配布可能な形式となっている。
 > * [プログラミングフォントの決定版「Ricty Diminished」 : 作々! -さくさく-](http://sak2.ldblog.jp/archives/36385629.html)
[/markdown]
