Persian Fonts

Hi Community,

I want to use Persian letters for my GUI. Unity shows characters well but the problem is in Persian language, the upcoming letters affect the typed letters.
As I said, Unity knows Persian letters (Because I use a Persian font called BYekan) but the problem is Unity cannot recognize if characters need to be changed during typing.

Thanks

you can use GUISkin or GUIStyle to import your font~
GUIText is also one choice

That doesn’t help with Persian, which has “context-sensitive” letters. Unfortunately Unity doesn’t support this.

–Eric

:shock:
bad luck!

I know there’s a Persian mono-class already available.See www.gamemaker.mihanblog.com for more info.

Hi there,

Hook up with Ashkan on Answers (or this forum). I have worked with him and he has a solution for Farsi font rendering. I am sure he’d be delighted to help.

Unity does not read the GSUB or GPOS tables from TTF files, so does not know about the details of Farsi glyph substitution or placement.

Maybe the link that was posted was to a site that Ashkan created. Unfortunately I do not read Arabic. :frowning:

Oh, and hello to all our friends in Iran.

Thanks,
Graham

1 Like

Hey everyone
sorry for not answering sooner, at the moment Mohammad R shojaee is my friend and knows about our solutions but i’m posting here for others if they arrive at this page.

First i should thank Graham for the kind words, and our language is Farsi and not Arabic :slight_smile:

Here is a link to the product page in our website (MindHammerGames)
http://mindhammergames.com/index.php/products/dev-tools/36-persian-renderer.html It’s priced at $45 on asset store. And it’s not written by me, It’s written by Sina AleAli (my co founder).

Hi Graham,

Does Unity have plans to support Farsi text rendering?

Thanks,
Aaron

Hi Ashkan,

Does the PersianRenderer work with the latest version of Unity?

Thanks,
Aaron

Hi Aaron
Well I’m no longer associated with the company making Persian renderer but there is an open source implementation of the Unicode’s complex script bidirectional text algorithm (bidi) which I always use these days and it works.

The way that it works is that you pass the string containing any Farsi, Arabic or Hibru text to it and then use the returned string in your UI. It works with 5.3.2 and uGUI well. it was working in prev versions and in OnGUI IMGUI (the immediate mode GUI) as well.

If you are in iran you can contact me by phone 09193046544 or email/skype me if u need any help.

Hi Ashkan,

Thank you for the link to this open source project. I will give it a try.

Best Regards,
Aaron

Hi Ashkan,
Thanks for your help,
Do you have any solution for text mesh pro to display persian texts properly?