Rictyというフォントの作成

WINDOWS環境はFontがConsolas + MeiryoKeにしているので、評判のいいRictyを生成してみることにした。
consolas+MeiryoKeは日本語フォントがめっちゃでかくなるので、もしよければ変えてみようかね。

FontForgeをインストール

$ brew install fontforge
==> Installing fontforge dependency: gettext
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gettext-0.18.
######################################################################## 100.0%
==> Pouring gettext-0.18.3.lion.bottle.1.tar.gz
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
OS X provides the BSD gettext library and some software gets confused if both are in the library path.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS:  -L/usr/local/opt/gettext/lib
CPPFLAGS: -I/usr/local/opt/gettext/include
==> Summary
/usr/local/Cellar/gettext/0.18.3: 374 files, 12M
==> Installing fontforge dependency: jpeg
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/jpeg-8d.lion.
######################################################################## 100.0%
==> Pouring jpeg-8d.lion.bottle.1.tar.gz
/usr/local/Cellar/jpeg/8d: 18 files, 784K
==> Installing fontforge dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-lzm
==> make install
/usr/local/Cellar/libtiff/4.0.3: 254 files, 3.7M, built in 39 seconds
==> Installing fontforge dependency: fontconfig
==> Downloading http://fontconfig.org/release/fontconfig-2.10.93.tar.bz2
######################################################################## 100.0%
==> Patching
patching file src/fcarch.h
==> ./configure --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=/usr/loca
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Mac OS X already provides this software in versions before Mountain Lion.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS:  -L/usr/local/opt/fontconfig/lib
CPPFLAGS: -I/usr/local/opt/fontconfig/include
==> Summary
/usr/local/Cellar/fontconfig/2.10.93: 448 files, 5.5M, built in 93 seconds
==> Installing fontforge
==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-sourc
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file fontforge/startui.c
Hunk #1 succeeded at 50 with fuzz 2.
==> ./configure --prefix=/usr/local/Cellar/fontforge/20120731 --enable-double --wi
==> make
==> make install
==> Caveats
For non-homebrew python (2.x), you need to amend your PYTHONPATH like so:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
==> Summary
/usr/local/Cellar/fontforge/20120731: 365 files, 13M, built in 70 seconds
準備

https://github.com/yascentur/Ricty から最新のコードをダウンロード

ダウンロードしたもの解凍。
http://levien.com/type/myfonts/inconsolata.html のサイトからINCONSOLATAをダウンロード(.otfのものをゲット)
http://mix-mplus-ipa.sourceforge.jp/ からM+IPAの合成フォントを手に入れる(Migu 1mをダウンロード)
INCONSOLATAの.otfとmigu-1m-bold.ttf/migu-1m-regular.ttfをRictyのフォルダに入れておく
合成
ターミナルで以下のコマンドを実行 ※ファイル名やディレクトリは適宜環境で
sh ricty_generator.sh Inconsolata.otf migu-1m-regular.ttf migu-1m-bold.ttf
# 以下結果
$ sh ricty_generator.sh Inconsolata.otf migu-1m-regular.ttf migu-1m-bold.ttf
Ricty Generator 3.2.2
Author: Yasunori Yusa
This script is for generating ``Ricty'' font from Inconsolata and Migu 1M.
It requires 2-5 minutes to generate Ricty. Owing to SIL Open Font License
Version 1.1 section 5, it is PROHIBITED to distribute the generated font.
Generate modified Inconsolata.
Find Inconsolata.otf.
Save Modified-Inconsolata-Regular.sfd.
While making Inconsolata bold, wait a moment...
Save Modified-Inconsolata-Bold.sfd.
Generate modified Migu 1M.
Find migu-1m-regular.ttf.
While scaling migu-1m-regular.ttf, wait a little...
Save Modified-migu-1m-regular.sfd.
Find migu-1m-bold.ttf.
While scaling migu-1m-bold.ttf, wait a little...
Save Modified-migu-1m-bold.sfd.
Generate Ricty.
While merging Modified-Inconsolata-Regular.sfd with Modified-migu-1m-regular.sfd, wait a little more...
Save Ricty-Regular.ttf.
While merging Modified-Inconsolata-Bold.sfd with Modified-migu-1m-bold.sfd, wait a little more...
Save Ricty-Bold.ttf.
Remove temporary files.
Generate RictyDiscord-Regular.ttf.
Generate RictyDiscord-Bold.ttf.
Succeeded to generate Ricty!
$ls -l
-rw-r--r-- 1 XXXX staff 3537912 10 13 00:32 Ricty-Bold.ttf
-rw-r--r-- 1 XXXX staff 3227988 10 13 00:31 Ricty-Regular.ttf
-rw-r--r-- 1 XXXX staff 3538164 10 13 00:32 RictyDiscord-Bold.ttf
-rw-r--r-- 1 XXXX staff 3228260 10 13 00:32 RictyDiscord-Regular.ttf
という4ファイルができている
フォント登録
ダブルクリックとかでフォントのインストールが出てくるのでソレでインストール。
・SublimeTextへの変更
{
"theme": "Flatland Dark.sublime-theme", #無視してください
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme" , #無視してください
"font_face":"Ricty Bold", #fontの名前じゃないとダメみたいだった
"font_size":15, #15ぐらいが自分の環境だと読みやすかった。
}
終わり。