用drawstring画出来有空白的地方,应该如何缩小空白?
或是其它的解决方法
代码片段:
float fheight = g.MeasureString(Text, TextFont.ShowFont).Height;
float fwidth = GetTextSize(text, TextFont.ShowFont,"W")*_pZoom;
TextRectangle = Rectangle.Round(new RectangleF(TextRectangle.X, TextRectangle.Y, fwidth, fheight));
g.DrawString(text, TextFont.ShowFont, sb,TextRectangle.X,TextRectangle.Y);
以上代码画出来的就是上图文本与虚线框有空白。
有什么方法可以缩小空白?
谢谢大家!