Skip to main content
gamedev.net
🔒 Locked

arabic text problem

Started by jad_salloum Sep 8, 2005 at 8:26 AM 6 replies 2.1k views
Original Post
jad_salloum
jad_salloum
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
AhmedSaleh
AhmedSaleh
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 ...
Game Programming is the process of converting dead pictures to live ones .
jad_salloum
jad_salloum

what do u mean by " using a Bitmapped Font Engine " ???
jad_salloum
jad_salloum
can anybody give me a better solution for this problem coz i didnot know what he mean .
Michalson
Michalson
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.
jad_salloum
jad_salloum

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
matches81
matches81
erm.... if you draw your text as a 3D mesh, and the letters are flipped, why not just mirror them?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.