Jump to content
  • Advertisement
Sign in to follow this  
jad_salloum

arabic text problem

This topic is 4682 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi guys how i can write arabic text in a window using 3d text from mesh , i put the string in arabic to display it in arabic , but in runtime the letters were flipped and not attached to each other , do any one has any clue about this prob ???? can i make encoding in directx ?? if yes how ?? i am using c# if this gonna help

Share this post


Link to post
Share on other sites
Advertisement
hi,
i've solved this problem using a Bitmapped Font Engine which contains arab chars .
besides , im using the D3DXFont interface with arial font "arabic wrods " without problems ...

Share this post


Link to post
Share on other sites
By bitmapped font engine he means he is manually outputting each character from a stored image.

I don't have any specific solutions (not a heavy DirectX user), but the problem you are running into is the left to right vs. right to left rendering. Windows supports both, but you need to tell it to (just like some Asian languages need the imemode set to view properly).

In DirectX I believe you need to look at the RightToLeftReading part of DrawTextFormat. Hope that is enough information to find what you are looking for.

Share this post


Link to post
Share on other sites

thanx for answering but bitmapped font engin is not a solution for arabic language coz the letters are attached . and yes my problem is in left to right coz the letters are written flipped , and there is no RightToLeftReading thing when using 3D text coz we r not drawing it as if we do in font.drawtext in 2d font drawing

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!