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.

Resolved Localization: All letters appear as empty squares, even with downloaded font.

Discussion in 'UGUI & TextMesh Pro' started by blablaalb, Sep 11, 2021.

  1. blablaalb

    blablaalb

    Joined:
    Oct 28, 2015
    Posts:
    53
    I'm in big confusion. I try to localize my app to other languages. I started with Arabic. I downloaded and tried several fonts. The last font I tried was this one.
    First the fonts supposed to be Arabic, but when I preview them in Windows all letters are in English
    The same in Unity

    Then when I try to use the font with Arabic writing all letters appear as empty squares in the UI

    What am I doing wrong? How am I supposed to add foreign languages?
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Every language or group of languages in the world are assigned a specific Unicode range.

    The Unicode range for any given language can be found in the Unicode Chart.

    When creating a font asset, you can specify a custom Unicode range in the Character Set options. This is where you would define for instance a range to include the Arabic character set. There are a few posts on the forum here that would include this range which can also be found in the Unicode Chart.

    Alternatively, instead of creating a static font asset using the Font Asset Creator, you could create a dynamic font asset with Multi Atlas Texture enabled. As long as the source font file supports the desired language, the font asset will be able to potentially display every single character and glyph contained in the font file.

    To learn more about dynamic font assets and localization please consider watching the following two videos.



     
    Last edited: Sep 12, 2021
    blablaalb likes this.
  3. blablaalb

    blablaalb

    Joined:
    Oct 28, 2015
    Posts:
    53
    Thank you. Those videos are great!
     
    Stephan_B likes this.
  4. FolkvangStudios

    FolkvangStudios

    Joined:
    Aug 25, 2017
    Posts:
    91
    These two videos were incredibly Helpful. The barely noticable "Multi Atlas" checkbox made a world of difference with Chinese and Hindi Localizations.
     
  5. FolkvangStudios

    FolkvangStudios

    Joined:
    Aug 25, 2017
    Posts:
    91
    Side note. The whole "Multi Atlas" thing should just be a default behavior. It would have saved me 3-6 hours of troubleshooting and google searches that finally lead me here.