Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

How do I write proper Hindi or similar language ?

Discussion in 'Unity UI & TextMesh Pro' started by bhavinpanara22, Jul 12, 2017.

  1. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    Hello,

    How do I write Hindi text properly. If I write it, it's screwed in both Unity UI & TextMesh Pro also.
    Please guide me.
    Examples included for Unity & TextEdit(on mac). See the difference.

    Thanks.
    Screen Shot 2017-07-11 at 12.01.54 PM copy.png Screen Shot 2017-07-11 at 12.07.41 PM.png
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    848
    Hi @bhavinpanara22 - What actually is the issue? I fail to see it... The only difference in addition to minor style and color differences is the left aligned text?

    You can align text from Text component, Paragraph/Alignment. But I just wonder what the issue is in your case, as the text should be left aligned by default.
     
  3. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    525
    there are issues with character joining i think.
     
  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,734
    The issue is the current lack of support for ligatures and other font features in TextMesh Pro and other Unity text components.

    Support for font features also known as glyph shaping as well as bidirectional text are some of the new features that I am planning on supporting in the new integrated version of TMP.

    I am currently focused on this new integrated version of TMP and do not have an ETA yet on when it will be available.
     
    karl_jones likes this.
  5. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    Issue is not as simple as you think.
    Unity renders Hindi( and all indic scripts) completely wrong. Unity can not join some characters. It is not even placing characters in proper sequence. It can not form complex words written in Hindi(or any other Indic script).
     
  6. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    You are understanding my problem very well. Can you please give me a hint what should I do now until you release the next version with GPOS & GSUB support.
    Is there any other way to do so ?

    Thanks.
     
  7. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,734
    Unfortunately there is no easy solution. There might be some TextMesh Pro users who may have written some utility to handle ligatures for Hindi but we are sort of stuck hoping for one of them to read this post.

    The idea behind this utility would be to take the source string (text) and parse it to replace / insert the correct ligatures. You would also need to make sure that the substituted glyph is also included in the font asset.
     
  8. bhavinpanara22

    bhavinpanara22

    Joined:
    Jul 5, 2013
    Posts:
    126
    @Stephan_B Hello Sir,

    Please visit the link below.
    This guy has done the work for tamil & telugu. But I can't understand how he has done this ? Can you please giude me about it ? And that guy has done for the 3D text. How can I do it for Unity UI text component ?

    http://nareshkumaryakkala.in/unity-text-rendering-issue/

    Thanks.
     
  9. ds13

    ds13

    Joined:
    Mar 12, 2018
    Posts:
    3
    Hi,
    Any update on supporting ligatures or glyph shaping for Hindi font, other than the link in above comment.
    Please update.

    Thanks.
     
  10. Divkaran

    Divkaran

    Joined:
    Jul 22, 2014
    Posts:
    33
    Any update on this please?
     
  11. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,734
    This functionality is still being worked on and part of the larger work being done on the new text system. Unfortunately, I don't have a firm ETA on this yet.
     
  12. amjaliks

    amjaliks

    Joined:
    Jul 11, 2015
    Posts:
    90
    Any update on this?
     
  13. grobm

    grobm

    Joined:
    Aug 15, 2005
    Posts:
    213
    Same sort of ordering issue with Arabic fonts as well.