Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

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

Discussion in 'UGUI & TextMesh Pro' started by afshin_a_1, Feb 12, 2020.

  1. afshin_a_1

    afshin_a_1

    Joined:
    Apr 26, 2015
    Posts:
    55
    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.
    wrong_textmeshpro_arial_persian.jpg
    correct Right to left in notepad: correct_notepad.jpg

    i appreciate any help. thanks in advance.
     

    Attached Files:

    Last edited: May 8, 2024
    nice2000 likes this.
  2. diviniy149

    diviniy149

    Joined:
    Mar 9, 2018
    Posts:
    1
    Hey Afshin, have you fixed your problem? I might be able to help
     
  3. Mhmd_krgg

    Mhmd_krgg

    Joined:
    Sep 26, 2023
    Posts:
    1
    Hey mate i have same problem,can i use your help here?
     
  4. afshin_a_1

    afshin_a_1

    Joined:
    Apr 26, 2015
    Posts:
    55
    No. Thanks in advance for any help. How can you help us?