//测试字体大小
            string textStr = "测试字体大小";
            Font stringFont = new Font("宋体", 20);
            Size sz = TextRenderer.MeasureText(textStr, stringFont);
            MessageBox.Show(sz.Width + "," + sz.Height);