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. Dismiss Notice

TextMesh Pro Letters with an accent (like é, à, è, etc) do not use the chosen font

Discussion in 'UGUI & TextMesh Pro' started by ArnoBen, May 9, 2019.

  1. ArnoBen

    ArnoBen

    Joined:
    Apr 24, 2019
    Posts:
    13
    Greetings,
    I am using a Text Mesh Pro with a specific font downloaded here and it works fine, but whenever I use letters with an accent, the default font is used (and you really see it). I'm french so the text will be filled with those letters.


    When I use the windows font visualizer, the letters are displayed properly :


    Any idea on how to fix it ?
    Thank you in advance.
     
    Carlaodll22 likes this.
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Most likely when you created the font asset, you did not select Extended ASCI in the Font Asset Creator which is why for those characters (since they are not part of the ASCII set) when end up coming from a fallback which in this case appears to be from the LiberationSans SDF assigned in the TMP Settings.

    Below is an image showing (top) your font asset with Extended ASCII where the accented letters are coming from that font. (Bottom) the same line of text using LiberationSans SDF where you can see the accented a and e are from that font asset.

    upload_2019-5-9_14-23-19.png
     
    IL_Briz, otakudog, marvpaul and 15 others like this.
  3. ArnoBen

    ArnoBen

    Joined:
    Apr 24, 2019
    Posts:
    13
    That's it ! Thank you very much, works like a charm :)
     
    SepraB and Stephan_B like this.
  4. Carlaodll22

    Carlaodll22

    Joined:
    Nov 19, 2022
    Posts:
    1
    THANK YOU VERY VERY MUCH!!!!
     
  5. marvpaul

    marvpaul

    Joined:
    May 9, 2016
    Posts:
    26
    Thanks, finally it works!