サブピクセルレンダリング

参照 http://blog.wozozo.org/archives/21

これは前にもやってみたのだけど、そのときはFirefoxで原因不明の文字化けをするようになってしまったのでオフにしていた。Operaにしてこれをやってみると、文字化けはなかった。僕はエディタなんかで出来るだけ小さい文字の英語フォントにしているのだけど、それがかなり綺麗になって読みやすくなる。

以下は参照のまんまです。(あくまで自分用のメモなので)

/etc/apt/sources.listに以下の行を追加

deb http://www.elisanet.fi/mlind/ubuntu feisty fonts
deb-src http://www.elisanet.fi/mlind/ubuntu feisty fonts

キーを取得。

sudo gpg –recv-keys 937215FF
sudo gpg –export –armor 937215FF | sudo apt-key add -

これエラーが出た気がする。うろ覚え。確か別の方法でやったような・・・

リストのアップデート

sudo apt-get update
sudo apt-get dist-upgrade

フォントの設定を変える

dpkg-reconfigure fontconfig-config

ここで3つほど質問をされる

Select Native if you mostly use Bitstream Vera (the default in Debian)
or any of the Microsoft fonts.  Select Autohinter if you mostly use
other TrueType fonts.  Select None if you want blurry text.

Font tuning mothod for screen:

                                 Native
                                 Autohinter
                                 None

---------------------------
Rendering text at a subpixel level generally makes it look a bit better
on flat (LCD) screens, but can show color artifacts on CRT screens. The
"Automatic" choice will enable it only if a LCD screen is detected.

Enable subpixel rendering for screen:

                                 Automatic
                                 Always
                                 Never

---------------------------
By default, only outline fonts are used by applications which support
fontconfig.  Outline fonts are fonts which scale well to various sizes.
In contrast, bitmapped fonts are often lower quality. Enabling this
option will affect the systemwide default; this and many other
fontconfig options may be enabled or disabled on a per-user basis.

Enable bitmapped fonts by default?

                    <Yes>                       <No>  

僕はNone,Always,Yesと答えた。はっきり言って意味わかってません。

この設定はもういちど

dpkg-reconfigure fontconfig-config

をすれば変えられる。それからXubuntuの場合は[Menu]->[Settings]->[User Interface Settings]の一番下にUse sub-pixel hintingという項目がある(いつの間にできた?)ので、それにチェックを入れるとサブピクセルレンダリングがオンになる。