2D Toolkit Forum
2D Toolkit => Support => Topic started 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.
-
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.
-
Thanks.
Is there any way to prevent user from entering any text beside standard English, like Farsi/Arabic?
-
No there isn't but you do have the code to tweak as you wish.
-
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?