Search Unity

Unity webGl cannot display chinese characters in Chrome

Discussion in 'Web' started by tyd951, Oct 12, 2018.

  1. tyd951

    tyd951

    Joined:
    Oct 11, 2018
    Posts:
    1
    Unity webGl cannot display chinese characters in Chrome.
    It works for the unity IDE.

    20181012120538.png
    201810121205418.png
     
  2. kou-yeung

    kou-yeung

    Joined:
    Sep 5, 2016
    Posts:
    30
    https://docs.unity3d.com/Manual/class-Font.html
    in "Dynamic fonts"
    Note that some target platforms (WebGL, some consoles) do not have OS default fonts Unity can access for rendering text. For those platforms, Include Font Data will be ignored...

    so,are you use default font (eg. Arial) maybe cann't display this.
    you can try to include a font data in unity project and replace default font.
     
  3. poweremil

    poweremil

    Joined:
    Aug 3, 2018
    Posts:
    8
    It looks liek you are using the default font? The default font that Unity uses for WebGL does not support chinese characters.

    You must supply your own font that has support for the characters you want to use. Google has some free fonts you can use although they are quite large: https://www.google.com/get/noto/
     
  4. epicardio

    epicardio

    Joined:
    Feb 9, 2015
    Posts:
    6
    I'm having the same problem. My Chinese text works fine in the MacOS and Windows standalone build, but it does not work in WebGL. If anyone has solved this please let me know which font and setting does the job, thanks.
     
  5. EdwindTan

    EdwindTan

    Joined:
    Oct 18, 2018
    Posts:
    1
    same here, unable to display chinese font on webgl build. any solution?
     
  6. DryreL

    DryreL

    Joined:
    Feb 23, 2020
    Posts:
    49
    I used Google Noto font in my game. Windows & Android build supports japanese/korean/chinese fonts while WebGL build doesn't. Any idea?
     
  7. gtk2k

    gtk2k

    Joined:
    Aug 13, 2014
    Posts:
    288