private float getfontWeight(int width, Font font) { Graphics g = _thisForm.CreateGraphics(); SizeF sizeF = g.MeasureString("A", font); return(sizeF.Width * width); }