通常可以在.gemspec文件中看到.例如.i18n.gemspec.
$: << File.expand_path('../lib', __FILE__)
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用.NET框架提供的PrintDocument将khmer脚本(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);
}
Run Code Online (Sandbox Code Playgroud)