環境
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.5
BuildVersion: 13F34
Rictyのインストール
RictyをHomebrewからインストールします。
$ brew tap sanemat/font
$ brew install ricty
==> Installing ricty
==> Downloading https://github.com/yascentur/Ricty/archive/3.2.3.tar.gz
######################################################################## 100.0%
==> Downloading http://sourceforge.jp/frs/redir.php?m=iij&f=%2Fmix-mplus-ipa%2F59022%
######################################################################## 100.0%
==> Downloading http://levien.com/type/myfonts/Inconsolata.otf
######################################################################## 100.0%
==> sh ./ricty_generator.sh /usr/local/Cellar/ricty/3.2.3/share/fonts/Inconsolata.otf
==> Caveats
***************************************************
Generated files:
/usr/local/Cellar/ricty/3.2.3/share/fonts/Ricty-Bold.ttf
/usr/local/Cellar/ricty/3.2.3/share/fonts/Ricty-Regular.ttf
/usr/local/Cellar/ricty/3.2.3/share/fonts/RictyDiscord-Bold.ttf
/usr/local/Cellar/ricty/3.2.3/share/fonts/RictyDiscord-Regular.ttf
***************************************************
To install Ricty:
$ cp -f /usr/local/Cellar/ricty/3.2.3/share/fonts/Ricty*.ttf ~/Library/Fonts/
$ fc-cache -vf
***************************************************
==> Summary
/usr/local/Cellar/ricty/3.2.3: 12 files, 19M, built in 89 seconds
上のメッセージから、InconsolataというフォントからRictyを自動で生成してくれていることが分かります。生成されたフォントは/usr/local/Cellar/ricty/3.2.3/share/fonts
にあります。
fontforgeとfontpatcherのインストール
パッチを当てるためにHomebrewからfontforgeをインストールします。
$ brew install fontforge
また、vim-powerlineに含まれているfontpatcherをcloneしてきます。
$ git clone https://github.com/Lokaltog/vim-powerline.git
いよいよパッチを当てます。
$ fontforge -script [path_to_vim-powerline]/fontpatcher/fontpatcher /usr/local/Cellar/ricty/3.2.3/share/fonts/Ricty-Regular.ttf
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
Based on sources from 12:00 JST 13-Nov-2014-ML-D.
Based on source from git with hash:f6ffb25d7732adcc8d32dae75bd90bda90250304
strippedname:[path_to_vim-powerline]/fontpatcher/PowerlineSymbols.sfd
strippedname:/usr/local/Cellar/ricty/3.2.3/share/fonts/Ricty-Regular.ttf
This font contains both a 'mor[tx]' table and a 'GSUB' table.
FF will only read feature/settings in 'morx' which do not match features
found in 'GSUB'.
FF will only read feature/settings in 'morx' which do not match features found in 'GSUB'.
という一瞬エラーメッセージかと勘違いするメッセージが出ていますが、Powerlineというサフィックスがついたフォントが生成されていれば成功です。
パッチを当てたRictyをMacにインストール
以下のコマンドを叩いてインストールします。
$ cp -f /usr/local/Cellar/ricty/3.2.3/share/fonts/Ricty-Regular-Powerline.ttf ~/Library/Fonts/
$ fc-cache -vf
また、フォントをダブルクリックしてGUIでインストールすることも出来ます