我想用'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