2D Toolkit Forum

2D Toolkit => Support => Topic started by: test84 on March 15, 2014, 02:05:17 am

Title: How to get input and output of Arabic/Persian/Farsi texts?
Post by: test84 on March 15, 2014, 02:05:17 am
Hi,

I was wondering on how to get Arabic/Farsi text input vai tk2d's input texts and also what should I do if I want to have Arabic/Farsi text on button labels, a.k.a. text meshes.

Thanks.
Title: Re: How to get input and output of Arabic/Persian/Farsi texts?
Post by: unikronsoftware on March 15, 2014, 11:13:40 am
tk2d doesn't support right to left, but if you generate the right glyphs and handle the right to left yourself, it should be possible to get to work.
Title: Re: How to get input and output of Arabic/Persian/Farsi texts?
Post by: test84 on March 15, 2014, 08:01:45 pm
Thanks.

Is there any way to prevent user from entering any text beside standard English, like Farsi/Arabic?
Title: Re: How to get input and output of Arabic/Persian/Farsi texts?
Post by: unikronsoftware on March 15, 2014, 10:00:55 pm
No there isn't but you do have the code to tweak as you wish.
Title: Re: How to get input and output of Arabic/Persian/Farsi texts?
Post by: test84 on March 17, 2014, 05:23:14 am
For future reference and anyone finding this via search, here is how I did it. Replace this from tk2dUITextInput.cs:

If I don't want to modify tk2d, should I make this protected, inherit from this class and then override this method with my own?