1

I want to use 'text' property to show chinese characters, but the characters cannot show. for example:

<a-entity text="align:center;value: 返回back; "></a-entity>

  • [This might be able to help you](http://stackoverflow.com/questions/20670034/how-to-display-chinese-character-in-html) – Jesse Mar 09 '17 at 06:33

2 Answers2

1

You will need to get a font file that contains the Chinese characters. Then generate an SDF font with Hiero (https://github.com/libgdx/libgdx/wiki/Distance-field-fonts).

https://aframe.io/docs/0.5.0/components/text.html#generating-sdf-fonts

Alternatively, the process is similar for the text-geometry component, you can generate a font set with Chinese characters using FaceType.js

ngokevin
  • 12,980
  • 2
  • 38
  • 84
0

Use MSDF font generator (source) then load that fond in the text component.

Utopiah
  • 306
  • 1
  • 11