private void OnFontSelect(object sender, EventArgs args) { GFontDialog gd = new GFontDialog(); Font nf = Poderosa.RuntimeUtil.CreateFont(_profile.FontName, _profile.FontSize); Font jf = Poderosa.RuntimeUtil.CreateFont(_profile.CJKFontName, _profile.FontSize); gd.SetFont(_profile.UseClearType, _profile.EnableBoldStyle, _profile.ForceBoldStyle, nf, jf); if (gd.ShowDialog(this) == DialogResult.OK) { Font f = gd.ASCIIFont; _profile.FontName = f.Name; _profile.CJKFontName = gd.CJKFont.Name; _profile.FontSize = f.Size; _profile.UseClearType = gd.UseClearType; _profile.EnableBoldStyle = gd.EnableBoldStyle; _fontSample.Font = f; AdjustFontDescription(f.Name, gd.CJKFont.Name, f.Size); } }