is it possible to make the console output in RTL ( right to left )?

一曲冷凌霜 提交于 2021-01-29 14:29:40

问题


i want the output from my c++ progrmm to be typed in right to left in the console , i couldn't find and console api function that can help me ( the output is in arabic language this why i want type RTL.


回答1:


Visual Studio can display Arabic and Hebrew text correctly from right to left.I suggest you could refer to MS DOC

Firstly:

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.

I suggest you should set the code page to Arabic code page, or utf8, on your Arabic computer. On non-Arabic computers, it will be difficult to find a console font that can display glyphs.

And then:

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.

You could try to press Ctrl+RightShift to switch the Properties window to support right-to-left reading order for property values.

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.

As far as I'm concerned, the console does not support Right-To-Left languages.



来源:https://stackoverflow.com/questions/59416701/is-it-possible-to-make-the-console-output-in-rtl-right-to-left

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!