c++ - 是否可以使控制台输出为 RTL(从右到左)?

标签 c++ visual-studio console

我希望在控制台中从右到左输入我的 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/

相关文章:

.net - Visual Studio 2013 登录错误

c++ - std::array - 'buffer of size n will be overrun' ,仅在 VS 中

visual-studio - Visual Studio如何自动构建和测试C#代码?

c++ - 如何在第一次输入后立即停止 C++ 控制台关闭

c# - 控制台应用程序中的命令行当前工作目录

c - 简单的C scanf 不起作用?

c++ - 创建一个子类 vector ?

c++ - 完美的转发类可变参数

C++11 线程 : Object with arguments in the constructor

c++ - 如何从Lua运行进程中读取变量值(获取进程变量值)?