読みやすいフォントとして Ricty をよく使いますが、Windows ではそのままだと線が欠けてしまったりして綺麗に表示されません。 そんなときに gdipp などが有効ですが、Vim – KaoriYa ではこの手のツールは使えません。 ではどうするかというと、実は Vim 自体にフォントを綺麗に描画する DirectWrite 機能を有しているのでそれを使います。 設定自体は簡単なのですが他に影響が出てちょっと面倒なのでまとめてみます。 設定方法はこちらにもありますが、set renderoptions=type:directx を追加するだけです。 但し set enc=utf-8 が設定されていることが発動条件なのですが、これを設定するとメニューが日本語表示の場合文字化けします。 そこで set langmenu=ja_jp.utf-8 でメニューも UTF-8 にする必要があり
ここでは、fntが既存フォントで、フォームのFontプロパティから取得されたとしましょう。 Dim fnt As Font = Font このフォントからfntItalicという名称の斜体バージョンのフォントを作り出す場合には、次のようなコードを記述します。 Dim fntItalic As New Font(fnt, FontStyle.Italic) Visual Basic .NETの論理和(OR)ビット演算子を使えば、複数の列挙体メンバを組み合わせることができます。 Dim fntBoldStrikeout As New Font(fnt, FontStyle.Bold Or FontStyle.Strikeout) 次のサンプルプログラムは、フォームのFontプロパティを受け取り、太字と斜体バージョンのフォントを作成します。標準、太字、斜体の3種類のスタイルを混在させて表示します
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く