最終更新: yamashitatakuya 2007年10月09日(火) 04:46:12履歴
$ sudo mkdir /usr/share/fonts/truetype/ttf-your-font
$ sudo cp /path-to-fonts/your-font.ttf /usr/share/fonts/truetype/ttf-your-font/
$ sudo cp /path-to-fonts/your-font.ttf /usr/share/fonts/truetype/ttf-your-font/
OS をインストールしたての場合、タイムゾーンの関係でフォントキャッシュの更新に失敗する場合があるので、touch コマンドにてフォント関連のディレクトリ・ファイルの日付を更新しておく必要がある。
$ find /usr/share/fonts -exec sudo touch \{\} \;
$ find /usr/local/share/fonts -exec sudo touch \{\} \;
$ find /var/lib/defoma/fontconfig.d -exec sudo touch \{\} \;
$ find /usr/share/fonts -exec sudo touch \{\} \;
$ find /usr/local/share/fonts -exec sudo touch \{\} \;
$ find /var/lib/defoma/fontconfig.d -exec sudo touch \{\} \;
userChrome-example.css を userChrome.css というファイル名でコピーを作成して内容を編集する。
$ cd /home/user/.mozilla/firefox/xxxxxxxx.default/chrome
$ cp userChrome-example.css userChrome.css
$ vim userChrome.css
編集箇所は下記の部分。
(例:フォントサイズ 10pt でフォント名が「メイリオ」の場合を想定)
変更前:
変更後:
$ cd /home/user/.mozilla/firefox/xxxxxxxx.default/chrome
$ cp userChrome-example.css userChrome.css
$ vim userChrome.css
編集箇所は下記の部分。
(例:フォントサイズ 10pt でフォント名が「メイリオ」の場合を想定)
変更前:
/* * Make all the default font sizes 20 pt: * * * { * font-size: 20pt !important * } */
変更後:
/* * Make all the default font sizes 20 pt: */ * { font-size: 10pt !important; font-family: メイリオ !important; }
タグ
コメントをかく