Пример #1
0
        //FFT设置
        private void btnTTF_Click(object sender, EventArgs e)
        {
            FontDialog fontDialog1 = new FontDialog();

            fontDialog1.Font = new Font(CSharpInterface.FromASCIIByteArray(m_lf.lfFaceName), 8);
            if (DialogResult.OK == fontDialog1.ShowDialog())
            {
                m_strFontName       = fontDialog1.Font.Name;
                m_lf.lfFaceName     = System.Text.Encoding.Default.GetBytes(fontDialog1.Font.Name);
                m_fontPara.nCharSet = fontDialog1.Font.GdiCharSet;
                m_lf.lfCharSet      = fontDialog1.Font.GdiCharSet;
            }
            UpdateData(false);
        }