是否有 winapi 函数或其他方法来确定在 Windows 控制台中打印时给定代码点的列宽?
我正在使用 Windows 控制台,一些 Unicode 代码点如 / U+0FF0F FULLWIDTH SOLIDUS
打印时有两列宽,有没有办法在打印时获取代码点的宽度? Unix 有 wcwidth()
。 C# 或 winapi 的想法会很棒。
非常感谢。
I am working with the Windows Console, some Unicode code points such as / U+0FF0F FULLWIDTH SOLIDUS
are two columns wide when printed, is there a way to get the width of the code point when printed? Unix has wcwidth()
. C# or winapi ideas would be great.
Many thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论