//绘制函数
private static string DrawText(PaintEventArgs e, Font font)
{string s = "Tail Spin Toys 中\b文 + 数<d0.25.>{a2}(aBc)字,123.256 A,bc! Th.is is a test Measure string demo.30";
//string s = "This is a English string ......";
StringBuilder sb = new StringBuilder();
//Font font = new Font("仿宋", 13, FontStyle.Regular);
sb.AppendLine("字体:" + font.Name + ";字体大小:(" + font.SizeInPoints.ToString() + "----" + font.Size.ToString() + ")");
Point startPoint = new Point(10, 10);
// Set TextFormatFlags to no padding so strings are drawn together.
TextFormatFlags flags = TextFormatFlags.NoPadding;
Size proposedSize = new Size(