Search Unity

TextMesh Pro feezes when trying to create font with devanagari characters

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by Deathfate, Jun 14, 2017.

  1. Deathfate

    Deathfate

    Joined:
    Sep 10, 2012
    Posts:
    46
    Hi, I'm trying to display hindi characters, I have a font which displays them correctly but when I try to create a font asset with the custom unicode range 0900-097F unity freezes and the font asset is not created.

    I have tryied diferent fonts and it happens in all of them.

    Any solutions?
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,650
    This should be working fine.

    Depending on the Sampling Point Size and Padding value the process could take longer.

    Can you provide me with the font file you are trying to use to generate the font? I can check to make sure it all works as expected.
     
  3. Deathfate

    Deathfate

    Joined:
    Sep 10, 2012
    Posts:
    46
    Hello, Thank you for your fast replay, I attach my font file but I have tried with several of them and none of them worked.

    Also, I don't think that computing time is a factor, as If I just paste an Hindi character like ख and use "custom characters" instead of unicode range, trying to make a font asset only with that character still freezes.
     

    Attached Files:

  4. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    3,650
    The font you provided is not a properly formatted font. By that I mean Hindi characters are mapped into the ASCII range which is why nothing (seemingly) happens when you try to create the font asset using the 0900-097F unicode range.

    Here is a screenshot of the content of the font using an external font viewing / editing tool
    upload_2017-6-15_1-28-27.png

    Here is a screen shot of the font your provided using the ASCII selection or whatever is in that range.
    upload_2017-6-15_1-26-30.png

    When trying to generate the glyphs from 0900-097F, the font asset creator would eventually finish but I never optimized it for trying to generate a whole lot of nothing :)

    Here is an example using the Adobe Devanagari font which is properly formatted where the glyphs are in the correct unicode location.
    upload_2017-6-15_1-39-29.png
     
  5. Deathfate

    Deathfate

    Joined:
    Sep 10, 2012
    Posts:
    46
    Thank you very much, your product is awesome
     
unityunity