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

WebGL and rendering of Chinese/Russian text

Discussion in 'WebGL' started by ffasce, Oct 15, 2015.

  1. ffasce

    ffasce

    Joined:
    Jul 3, 2015
    Posts:
    8
    Hi there!
    I'm making a webGL based multilingual game. I have necessity to include Chinese and Russian among the other languages. The game is also published with webplayer and with this version everything runs well. The text is correctly shown in all required languages.

    When it comes to webGL, though, I have problems. Chinese and Russian look completely broken. I've read around that webGL, for performance reasons, only has a Latin character set and in order to show languages based on other character sets, I should move to different fonts and include them in the fontlist.

    So I've tried the Arial Unicode MS font (I read in another thread that it should have all necessary characters) and I've put it into the Font Names I'm currently using for fallback. Here is my setup:

    Screen Shot 2015-10-15 at 17.39.41.png

    Is there something else I need to setup? Even like this it doesn't work...

    Can you help me on this? Thanks!
     
  2. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Yes. You actually need to also include that font file in your project. You can see that it is set up correctly if the other font shows up under "References to other fonts in project".
     
  3. ffasce

    ffasce

    Joined:
    Jul 3, 2015
    Posts:
    8
    Thought so.
    I've included the font in my project, but it doesn't show up in the reference section. What could it be?
     
  4. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Try:
    -make sure "Font names" is a comma-separated list
    -reimporting the font which references it.
     
  5. ffasce

    ffasce

    Joined:
    Jul 3, 2015
    Posts:
    8
    It was the commas! I just put the names one after the other hitting return. Now it's working perfectly, thanks!