我想用'text'属性来显示中文字符,但字符不能显示。例如:[aframe]如何在aframe中显示中文字符?
<a-entity text="align:center;value: 返回back; "></a-entity>
我想用'text'属性来显示中文字符,但字符不能显示。例如:[aframe]如何在aframe中显示中文字符?
<a-entity text="align:center;value: 返回back; "></a-entity>
您将需要获得一个包含中国汉字的字体文件。然后用Hiero(https://github.com/libgdx/libgdx/wiki/Distance-field-fonts)生成一个SDF字体。
https://aframe.io/docs/0.5.0/components/text.html#generating-sdf-fonts
另外,这个过程是为text-geometry component类似的,你就可以使用FaceType.js
使用MSDF font generator(source),然后load that fond in the text component的字体有中国特色设定。
[This may be able to help you](http://stackoverflow.com/questions/20670034/how-to-display-chinese-character-in-html) – Jesse