我正在尝试使用抽绳打印中文字符,所有中文字符都是粗体。我已经在机器上安装了中文字体,并指定了常规的字体样式。我做错了什么?
void Print_Receipt(object sender, PrintPageEventArgs e)
{
Graphics g = e.Graphics;
float fontheight = font.GetHeight();
int x = 10;
int y = 10;
int offset = 40;
SolidBrush sb = new SolidBrush(Color.Black);
g.DrawString("測試消息",
new Font("Courier New", 10, FontStyle.Regular), sb, x, y);
}