読みやすいフォントとして Ricty をよく使いますが、Windows ではそのままだと線が欠けてしまったりして綺麗に表示されません。 そんなときに gdipp などが有効ですが、Vim – KaoriYa ではこの手のツールは使えません。 ではどうするかというと、実は Vim 自体にフォントを綺麗に描画する DirectWrite 機能を有しているのでそれを使います。 設定自体は簡単なのですが他に影響が出てちょっと面倒なのでまとめてみます。 設定方法はこちらにもありますが、set renderoptions=type:directx を追加するだけです。 但し set enc=utf-8 が設定されていることが発動条件なのですが、これを設定するとメニューが日本語表示の場合文字化けします。 そこで set langmenu=ja_jp.utf-8 でメニューも UTF-8 にする必要があり
最近のKaoriYa版のWindows向けgVimではどうやらrenderoptionsオプションを適切に設定すると、DirectWriteを使った描画に切り替えられるようだ。一年ほど前からパッチとして含められるようになっていたらしい。 有効にしただけではあまり劇的な効果を上げることは出来ないようだけど、追加で細かく設定を行える。例えば上のスクリーンショットのようにブワッとアンチエイリアスをかけたい場合は~/vimfiles/gvimrcなどで以下のようにすれば良い。 set encoding=utf-8 if has('win32') set guifont=MigMix_1M:h12 set renderoptions=type:directx,renmode:5 endif わかりやすそうなのでMigMix 1Mを例にした。デフォルトのGDI下では、上のスクリーンショットの様に特に縦
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く