How to include special characters in A-frame web VR (čšž…)

落花浮王杯 提交于 2019-12-11 17:25:20

问题


I want to create a website readable not only in english but i have problems with special characters. I've tried ascii html. Any idea?


回答1:


If You have troble with the text component there are three ways I can think of:

1) The proper way: find or generate a font from a fontset containing those characters. The docs describe how to use custom fonts:

 <a-entity text="text: Hello World; font: ../fonts/CustomFnt.fnt;    
 fontImage: ../fonts/CustomFnt.png"></a-entity>

But you need to have a font file + a .png grid with the font images. The docs provide a link to a tool for generating fonts, as well as a tutorial.

2) check out Don McCurdy's custom font generator !

3) The workaround: You could make a transparent image containing Your text and put it on an <a-plane>, like I did here.



来源:https://stackoverflow.com/questions/49223807/how-to-include-special-characters-in-a-frame-web-vr-%c4%8d%c5%a1%c5%be

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!