Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

UI/Text read different than hard code[Arabic]

Discussion in 'UGUI & TextMesh Pro' started by TSC, Aug 10, 2017.

  1. TSC

    TSC

    Joined:
    Oct 15, 2012
    Posts:
    271
    How's it going everyone,

    Q: I've been working on some localization, A good friend notified me that in the Arabic language the characters must be connected just as in cursive writing. I never noticed that the output was different furthermore I didn't know this was a matter. In the code the characters are connected; however during run time they are not.

    Is there a way to fix this,... do I need some sort of font or....

    I've attached Images of both code and run time output.

    (Two different menus)

    hardCode.PNG output.PNG
     
    Hickna likes this.
  2. Hickna

    Hickna

    Joined:
    Mar 14, 2013
    Posts:
    26
    Same issue here... It's not acceptable. I don't want to purchase some plugin just to place some text in the UI.Text.
    I noticed that if you copy the content of the Text component and then place it in anywhere (notepad or google translator) the result is correct.
    I can't understand why and how it's possible.

    Example:
    Play Now = العب الآن

    By script I do:
    Code (CSharp):
    1. public Text txtPlayNow;
    2. //...
    3. txtPlayNow.text = "العب الآن";
    And the result is:
    upload_2017-9-26_8-17-10.png

    But if I Copy this wrong text in the UI.Text Component, and then paste here the result is: العب الآن
    Perfectly right!!! (HOW!?)
    Weird! Very weird!
     
  3. Hickna

    Hickna

    Joined:
    Mar 14, 2013
    Posts:
    26