我正在尝试使用 .NET 框架提供的 PrintDocument 将高棉脚本(unicode)字符串发送到打印机。
不幸的是,在我看来 Graphics.DrawString() 不能正确呈现高棉脚本。
平台:Windows 7 Ultimate
IDE:VS 2010 Ultimate
这是示例代码:
void printDoc_PrintPage(object sender, PrintPageEventArgs e)
{
var font = new Font("Khmer UI", 12);
var text = "សួស្តី"; // "Hello"
e.Graphics.DrawString(text, font, Brushes.Black, 100, 100);
}