public void SetFont(bool cleartype, Font ascii, Font japanese)
{
_ignoreEvent = true;
_asciiFont = ascii;
_japaneseFont = japanese;
_checkClearType.Checked = cleartype;
_lASCIISample.ClearType = cleartype;
_lJapaneseSample.ClearType = cleartype;
int s = (int)ascii.Size;
_fontSizeList.SelectedIndex = _fontSizeList.FindStringExact(s.ToString());
_asciiFontList.SelectedIndex = _asciiFontList.FindStringExact(ascii.Name);
_japaneseFontList.SelectedIndex = _japaneseFontList.FindStringExact(japanese.Name);
if (_asciiFontList.SelectedIndex == -1)
{
_asciiFontList.SelectedIndex = _asciiFontList.FindStringExact("Courier New");
}
if (_japaneseFontList.SelectedIndex == -1)
{
_japaneseFontList.SelectedIndex = _japaneseFontList.FindStringExact("MS ゴシック");
}
_lASCIISample.Font = ascii;
_lJapaneseSample.Font = japanese;
_ignoreEvent = false;
}