Skip to content

Instantly share code, notes, and snippets.

@tokubass
Created January 2, 2013 17:12
Show Gist options
  • Save tokubass/4436191 to your computer and use it in GitHub Desktop.
Save tokubass/4436191 to your computer and use it in GitHub Desktop.
install Ricty font to max os x 10.8.2
#!/bin/sh
# 前提条件
# 1.fontforgeとx11をインストール済み
# sudo port install fontforge
# x11 http://xquartz.macosforge.org/landing/
#
# 2.同一ディレクトリにRicty-***.zip, Inconsolata.otf migu-1m-***.zip install.sh があること
RICTY=Ricty-3.2.1
MIGU_1M=migu-1m-20121030
do_clean() {
for var in $*
do
if [ -d $var ]
then
rm -iRf $var
fi
done
}
do_clean $RICTY $MIGU_1M
unzip $RICTY.zip
unzip $MIGU_1M.zip
cd ./$RICTY
# wait a minute
sh ricty_generator.sh ../Inconsolata.otf ../$MIGU_1M/migu-1m-regular.ttf ../$MIGU_1M/migu-1m-bold.ttf
cp -f Ricty*.ttf ~/Library/Fonts/
/usr/X11/bin/fc-cache -vf
cd ../
do_clean $RICTY $MIGU_1M
echo 'change default font from iTerm2 -> Preferences -> Profiles -> text'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment