How to write Persian/Farsi using TextMesh Pro - Complete Guide

hi everyone and @Stephan_B
i want to be able to write arabic/persian using textmesh pro, but since i don’t know much about fonts and characters i’m asking for help here
using unity 2019.3 - TextMesh Pro 2.0.1
i did test with 2 fonts, 1- B Nazanin and 2- Arial(it supports arabic)
first way: i just right clicked on the b nazanin font. Create/TextMesh Pro/Font Asset. it will automatically create font asset.
second way: i did set from window/TextMeshPro/Font asset creator, the character set to be “Unicode Range(Hex)” and render mode to be “sdf16” and others were default. and character sequence(hex) i used from this page
https://docs.antura.org/HowTo/ArabicFont.html

in both ways i can write arabic right to left(words aren’t squares, meaning it’s work). but the words are seperate from each other. as you know right to left languages like arabic/persian/urdu etc, letters stick together most times. so what should i do to write arabic instead of some right to left words??? If you help us step by step, it help both me and those who search for it in the future.
5472612--559794--wrong_textmeshpro_arial_persian.jpg
correct Right to left in notepad:5472612--559800--correct_notepad.jpg

i appreciate any help. thanks in advance.

5472612–559773–Used Fonts.rar (399 KB)

1 Like

Hey Afshin, have you fixed your problem? I might be able to help

Hey mate i have same problem,can i use your help here?

No. Thanks in advance for any help. How can you help us?