FROM THE OLD SITE

旧WordPressで公開していた記事を、当時の内容を尊重して再掲載しています。

PAST ARTICLE · OS X

OS X Lion にプログラミング用フォント Ricty をインストール

左が Ricty、右が OS X 標準

必要なファイルのダウンロード

フォント生成スクリプトとフォントをダウンロードします。

まず、プログラミング用フォント Ricty 公式サイトからフォント生成スクリプトの最新版をダウンロードします。

Rictyフォントの表示例

次に (http://levien.com/type/myfonts/inconsolata.html)からフォント OpenType file をダウンロードします。

Inconsolataフォントの表示例

最後に (http://mix-mplus-ipa.sourceforge.jp/)からフォント migu-1m-*.zip をダウンロードします。

Miguフォントの表示例

フォント生成スクリプトで Ricty を生成します

ダウンロードしたディレクトリに移動して、Ricty を解凍します。

BASH
$ tar xvzf yascentur-Ricty-3.1.3-5-gd17706f.tar.gz
x yascentur-Ricty-d17706f/
x yascentur-Ricty-d17706f/README.md
x yascentur-Ricty-d17706f/misc/
x yascentur-Ricty-d17706f/misc/os2version_reviser.sh
x yascentur-Ricty-d17706f/misc/print_ricty.c
x yascentur-Ricty-d17706f/misc/ricty_ascii_extractor.pe
x yascentur-Ricty-d17706f/misc/study_ambiguous_inconsolata.txt
x yascentur-Ricty-d17706f/ricty_discord_patch.pe
x yascentur-Ricty-d17706f/ricty_generator.sh

Inconsolata フォントを先程解凍した、Ricty のディレクトリへ移動します。

BASH
$ mv Inconsolata.otf yascentur-Ricty-d17706f/

Migu-1M フォントを解凍して、必要なフォントだけRicty のディレクトリへ移動します。

BASH
$ unzip migu-1m-20111002.zip
Archive: migu-1m-20111002.zip
creating: migu-1m-20111002/
inflating: migu-1m-20111002/migu-1m-bold.ttf
creating: migu-1m-20111002/mplus-TESTFLIGHT-043/
inflating: migu-1m-20111002/mplus-TESTFLIGHT-043/LICENSE_J
inflating: migu-1m-20111002/mplus-TESTFLIGHT-043/LICENSE_E
inflating: migu-1m-20111002/mplus-TESTFLIGHT-043/README_E
inflating: migu-1m-20111002/mplus-TESTFLIGHT-043/README_J
inflating: migu-1m-20111002/migu-1m-regular.ttf
creating: migu-1m-20111002/ipag00303/
inflating: migu-1m-20111002/ipag00303/Readme_ipag00303.txt
inflating: migu-1m-20111002/ipag00303/IPA_Font_License_Agreement_v1.0.txt
inflating: migu-1m-20111002/migu-README.txt
$ mv migu-1m-20111002/migu-1m-bold.ttf yascentur-Ricty-d17706f/
$ mv migu-1m-20111002/migu-1m-regular.ttf yascentur-Ricty-d17706f/

Ricty フォントを生成してインストールします。

BASH
$ cd yascentur-Ricty-d17706f/
$ sh ricty_generator.sh auto
Ricty Generator 3.2.0b

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!

最後にもう一度、こんな感じです(´∀`)

左が Ricty、右が OS X 標準