■[Ubuntu]Ubuntu 11.10 日本語 Remixを使いやすく設定する その1
- 「推奨パッケージ」のインストールを行う
- 註)に書かれているように「mscorefont は同意画面」が表示される。
sudo apt-get install ubuntu-restricted-extras -y


- 上記のWebページで推奨されているフォントをインストールする。
- まず、apt-getでインストール可能なフォントから。
- ビットマップ M+ フォント(xfonts-mplus)
- IPA フォント(otf-ipafont)
- IPA EX フォント(otf-ipaexfont)
- VL フォント(ttf-vlgothic)
sudo apt-get install xfonts-mplus otf-ipafont otf-ipaexfont ttf-vlgothic
- Emacsで使用可能なフォントを調べる方法(情報はこちらから)
- Emacsを起動させる
- 「*scratch*」バッファを開く
- (x-list-fonts "*") C-j で、フォントリストが表示される
- apt-getでインストールできないフォントのインストールの方法?
- truetype、opentypeのフォントでインストールするディレクトリが異なる(truetype、opentypeの違いを調べる必要あり)
- truetypeは"/usr/share/fonts/truetype/"、opentypeは"/usr/share/fonts/opentype/"に保存する。
/usr/share/fonts$ ls -F
X11/ cmap/ opentype/ truetype/ type1/
sudo fc-cache -v -f
fc-list
- 「MigMixとMigu」フォントのダウンロード
- ダウンロードと各フォントの違いはこちらから。
- MigMixには「MigMix 1P、MigMix 2P、MigMix 1M、MigMix 2M」の4種類のフォントがある。
- Miguには「Migu 1P、Migu 1C、Migu 1M、Migu 2M」の4種類のフォントがある。
- 各フォントをダウンロードする。
- ダウンロードした「.zip」を解凍する。
- 適当なディレクトリに「MigMix」、「Migu」ディレクトリを作成する。
- 解凍したディレクトリに入っている「hoge.ttf」ファイルを対応する「MigMix」、「Migu」ディレクトリにコピーする。
- 「MigMix」、「Migu」ディレクトリを"/usr/share/fonts/truetype/"ディレクトリにコピーする。(管理者権限が必要)
- フォントを認識させると、フォントを利用できるようになる。
- 以下にその手順。
cd /path/to/hoge.zip
unzip unzip migmix-1p-*.zip
unzip unzip migmix-2p-*.zip
unzip unzip migmix-1m-*.zip
unzip unzip migmix-2m-*.zip
unzip unzip migu-1p-*.zip
unzip unzip migu-1m-*.zip
unzip unzip migu-1m-*.zip
unzip unzip migu-2m-*.zip
mkdir MigMix
mkdir Migu
cp *.ttf MigMix/
cp *.ttf Migu/
sudo cp -rfv MigMix Migu /usr/share/fonts/truetype/
sudo fc-cache -f -v
fc-list |grep Mig
Migu 1C:style=Bold
Migu 1M:style=Bold
Migu 1P:style=Bold
Migu 2M:style=Bold
MigMix 2P:style=Bold
MigMix 1M:style=Bold
MigMix 1P:style=Bold
MigMix 2M:style=Bold
Migu 1P:style=Regular
Migu 2M:style=Regular
Migu 1M:style=Regular
Migu 1C:style=Regular
MigMix 1P:style=Regular
MigMix 2M:style=Regular
MigMix 2P:style=Regular
MigMix 1M:style=Regular
- Richyフォントも同じ方法でダウンロード、解凍、インストールする。
■[Ubuntu]姑息的にEmacsのフォントを設定する方法
- Emacsを起動する。
- 「Options」→「Set Default Font...」
- 「Options」→「Save Options」
