Graphics graphics = CreateGraphics();
SizeF sizeF = graphics.MeasureString(字符串, new Font("宋体", 9));
MessageBox.Show(string.Format("字体宽度:{0},高度:{1}", sizeF.Width, sizeF.Height));
graphics.Dispose();
Graphics graphics = CreateGraphics();
SizeF sizeF = graphics.MeasureString(字符串, new Font("宋体", 9));
MessageBox.Show(string.Format("字体宽度:{0},高度:{1}", sizeF.Width, sizeF.Height));
graphics.Dispose();