问题
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