C# winform打印粗体问题
直接打印,设置字体为粗体为什么字跑到屏幕上去了,正常字体是可以的
/// <summary> /// 打印 /// </summary> public void Print() { this.printdoc = new System.Drawing.Printing.PrintDocument(); this.printdoc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(printdoc_PrintPage); this.printdoc.Print(); } /// <summary> /// 绘制图形 /// </summary>private void printdoc_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e){Font printFont = new Font("宋体", 11,FontStyle.Bold);//这里设置粗体就不行//e.Graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;e.Graphics.DrawString(printText, printFont, printFontColor, GetRect(point, drawW, drawH), mStringFormat);}