I am able to display chinese character correctly but when I try to display arabic string the output that display in OpenGL scene is different from the arabic string that display in Visual Studio Editor. I know it should be something to do with "Complex Script" but I am not able to find any good example regarding to this matter. I would like to know how to display arabic text correctly?
相关问题
- How to know full paths to DLL's from .csproj f
- Is GLFW designed to use without LWJGL (in java)?
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Converting glm::lookat matrix to quaternion and ba
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Behavior of uniforms after glUseProgram() and spee
- Copy different file to output directory for releas
- Keep constant number of visible circles in 3D anim
Unlike Latin characters which each have a single visual representation, each Arabic character can have many different appearances depending on the surrounding characters. The logical characters in an Arabic string need to be converted to a sequence of visual glyphs in order to be correctly displayed. OpenGL doesn't do this processing for you so you're seeing the logical characters rendered without this processing.
To get around this you will need to use a library such as Uniscribe to transform the logical string into a visual string which you then give to OpenGL for rendering. There are some samples here.