我希望在控制台中从右到左输入我的 C++ 程序的输出,我找不到可以帮助我的控制台 api 函数 (输出是阿拉伯语,这就是为什么我要输入 RTL。
最佳答案
Visual Studio 可以从右到左正确显示阿拉伯语和希伯来语文本。建议您引用MS DOC
首先:
In order to enter and display bidirectional languages, you must be working with a version of Windows that is configured with the appropriate language. This can either be an English version of Windows with the appropriate language pack installed, or the appropriately localized version of Windows.
我建议您在阿拉伯语计算机上将代码页设置为阿拉伯语代码页或utf8。在非阿拉伯语计算机上,很难找到可以显示字形的控制台字体。
然后:
Visual Studio has limited support for right-to-left reading order. By default, text-entry controls in Visual Studio use left-to-right reading order. In most cases, you can use standard Windows gestures to switch reading order.
您可以尝试按 Ctrl+RightShift
切换“属性”窗口以支持属性值从右到左的阅读顺序。
The code editor (and text editor) does not support right-to-left reading order. You can enter text in a bidirectional language, but the reading order is always left-to-right.
据我所知,控制台不支持从右到左的语言。
关于c++ - 是否可以使控制台输出为 RTL(从右到左)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59416701/